[webkit-changes] [WebKit/WebKit] bdbc42: REGRESSION (269500 at main Safari 17.5): Masked Curve...

Yusuke Suzuki noreply at github.com
Thu Aug 22 21:52:15 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bdbc424148350aaa18e02a3e7768792cdfaf2e88
      https://github.com/WebKit/WebKit/commit/bdbc424148350aaa18e02a3e7768792cdfaf2e88
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2024-08-22 (Thu, 22 Aug 2024)

  Changed paths:
    A LayoutTests/svg/masking/masker-mixing-repaint-rect-and-bounding-box-expected.html
    A LayoutTests/svg/masking/masker-mixing-repaint-rect-and-bounding-box.html
    M Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp
    M Source/WebCore/rendering/svg/legacy/LegacyRenderSVGResourceGradient.cpp
    M Source/WebCore/rendering/svg/legacy/LegacyRenderSVGResourceMasker.cpp

  Log Message:
  -----------
  REGRESSION (269500 at main Safari 17.5): Masked Curved Line Rendering Issue
https://bugs.webkit.org/show_bug.cgi?id=277624
rdar://133251058

Reviewed by Cameron McCormack.

SVG mask implementation is incorrectly mixing repaint rect and bounding box.
We workaround the issue by passing RepaintRectCalculation::Accurate to enforce
child renderers to compute bounding boxes. But the right implementation should
distinguish repaint rect and bounding box as repaint rect is just used for
invalidation.

* LayoutTests/svg/masking/masker-mixing-repaint-rect-and-bounding-box-expected.html: Added.
* LayoutTests/svg/masking/masker-mixing-repaint-rect-and-bounding-box.html: Added.
* Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp:
(WebCore::RenderSVGResourceMasker::applyMask):
* Source/WebCore/rendering/svg/legacy/LegacyRenderSVGResourceGradient.cpp:
(WebCore::createMaskAndSwapContextForTextGradient):
(WebCore::clipToTextMask):
* Source/WebCore/rendering/svg/legacy/LegacyRenderSVGResourceMasker.cpp:
(WebCore::LegacyRenderSVGResourceMasker::applyResource):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list