Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 18a30951bbecb74a994af9793da2adcea20ce8fa
      
https://github.com/WebKit/WebKit/commit/18a30951bbecb74a994af9793da2adcea20ce8fa
  Author: Fujii Hironori <hironori.fu...@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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to