[webkit-changes] [WebKit/WebKit] 18a309: length values in gradients should take effective z...

Fujii Hironori noreply at github.com
Fri Dec 9 18:23:11 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 18a30951bbecb74a994af9793da2adcea20ce8fa
      https://github.com/WebKit/WebKit/commit/18a30951bbecb74a994af9793da2adcea20ce8fa
  Author: Fujii Hironori <Hironori.Fujii at sony.com>
  Date:   2022-12-09 (Fri, 09 Dec 2022)

  Changed paths:
    A LayoutTests/fast/gradients/length-and-zoom-expected.html
    A LayoutTests/fast/gradients/length-and-zoom.html
    M Source/WebCore/rendering/style/StyleGradientImage.cpp

  Log Message:
  -----------
  length values in gradients should take effective zoom into account
https://bugs.webkit.org/show_bug.cgi?id=248927

Reviewed by Simon Fraser.

If a gradient was using length values (i.e. 50px), it didn't work as
expected with zoom property and page zoom. It should take the
effective zoom into account.

* LayoutTests/fast/gradients/length-and-zoom-expected.html: Added.
* LayoutTests/fast/gradients/length-and-zoom.html: Added.
* Source/WebCore/rendering/style/StyleGradientImage.cpp:
(WebCore::StyleGradientImage::computeStops const):
(WebCore::positionFromValue):

Canonical link: https://commits.webkit.org/257659@main




More information about the webkit-changes mailing list