Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 140f98d39c7b96d843902be6ef46269f44d6635b
      
https://github.com/WebKit/WebKit/commit/140f98d39c7b96d843902be6ef46269f44d6635b
  Author: Said Abou-Hallawa <s...@apple.com>
  Date:   2025-09-12 (Fri, 12 Sep 2025)

  Changed paths:
    A LayoutTests/css3/filters/effect-scaled-graphics-context-blur-expected.html
    A LayoutTests/css3/filters/effect-scaled-graphics-context-blur.html
    M Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
    M Source/WebCore/platform/graphics/cg/GraphicsContextCG.h

  Log Message:
  -----------
  [Filters] Scale the radius of the CG blur style relative to the CTM of the 
context
https://bugs.webkit.org/show_bug.cgi?id=298425
rdar://159900551

Reviewed by Simon Fraser.

Apply the same scaling we do for CG drop-shadow radius to the blur radius.
Refactor the code in GraphicsContextCG to avoid duplicating the code. Use
similar names for setting the CG style functions.

Test: css3/filters/effect-scaled-graphics-context-blur.html
* LayoutTests/css3/filters/effect-scaled-graphics-context-blur-expected.html: 
Added.
* LayoutTests/css3/filters/effect-scaled-graphics-context-blur.html: Added.
* Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContextCG::fillRect):
(WebCore::GraphicsContextCG::fillRoundedRectImpl):
(WebCore::GraphicsContextCG::fillRectWithRoundedHole):
(WebCore::scaledBlurRadius):
(WebCore::GraphicsContextCG::setCGDropShadow):
(WebCore::GraphicsContextCG::clearCGDropShadow):
(WebCore::GraphicsContextCG::setCGGaussianBlur):
(WebCore::GraphicsContextCG::setCGColorMatrix):
(WebCore::GraphicsContextCG::setCGStyle):
(WebCore::GraphicsContextCG::didUpdateState):
(WebCore::GraphicsContextCG::setCGShadow): Deleted.
(WebCore::GraphicsContextCG::clearCGShadow): Deleted.
* Source/WebCore/platform/graphics/cg/GraphicsContextCG.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to