<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>263351</bug_id>
          
          <creation_ts>2023-10-18 17:43:21 -0700</creation_ts>
          <short_desc>[SVG] Enable approximate repaint bounding box computation</short_desc>
          <delta_ts>2024-11-12 12:47:35 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=277624</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=278551</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=279105</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yusuke Suzuki">ysuzuki</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>fujii</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1986026</commentid>
    <comment_count>0</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2023-10-18 17:43:21 -0700</bug_when>
    <thetext>...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986027</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-10-18 17:43:44 -0700</bug_when>
    <thetext>&lt;rdar://problem/117175423&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986029</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2023-10-18 17:46:10 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/19262</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986071</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-10-18 21:30:02 -0700</bug_when>
    <thetext>Committed 269500@main (2f7437fb0267): &lt;https://commits.webkit.org/269500@main&gt;

Reviewed commits have been landed. Closing PR #19262 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986215</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-19 12:46:07 -0700</bug_when>
    <thetext>http/tests/svg/use-custom-property-inheritance.html  is crashing after this change.
https://results.webkit.org/?suite=layout-tests&amp;test=http%2Ftests%2Fsvg%2Fuse-custom-property-inheritance.html&amp;style=debug

https://ews-build.s3-us-west-2.amazonaws.com/macOS-AppleSilicon-Ventura-Debug-WK2-Tests-EWS/ca059f9b-18153/http/tests/svg/use-custom-property-inheritance-stderr.txt

ASSERTION FAILED: !renderer.hasNonScalingStroke()
/Volumes/Data/worker/macOS-AppleSilicon-Ventura-Debug-Build-EWS/build/Source/WebCore/rendering/svg/SVGRenderSupport.cpp(577) : auto WebCore::SVGRenderSupport::calculateApproximateStrokeBoundingBox(const WebCore::RenderElement &amp;)::(anonymous class)::operator()(const auto &amp;, WebCore::FloatRect) const [renderer:auto = WebCore::LegacyRenderSVGShape]
1   0x12e6cf28c WTFCrash
2   0x282ada7e0 WebCore::BaseAudioContext::isGraphOwner() const
3   0x2856211f8 WebCore::FloatRect WebCore::SVGRenderSupport::calculateApproximateStrokeBoundingBox(WebCore::RenderElement const&amp;)::$_2::operator()&lt;WebCore::LegacyRenderSVGShape&gt;(WebCore::LegacyRenderSVGShape const&amp;, WebCore::FloatRect) const
4   0x2856210a0 WebCore::FloatRect WebCore::SVGRenderSupport::calculateApproximateStrokeBoundingBox(WebCore::RenderElement const&amp;)::$_1::operator()&lt;WebCore::LegacyRenderSVGShape&gt;(WebCore::LegacyRenderSVGShape const&amp;, WebCore::FloatRect) const
5   0x2856137dc auto WebCore::SVGRenderSupport::calculateApproximateStrokeBoundingBox(WebCore::RenderElement const&amp;)::$_0::operator()&lt;WebCore::LegacyRenderSVGShape&gt;(WebCore::LegacyRenderSVGShape const&amp;) const
6   0x285613608 WebCore::SVGRenderSupport::calculateApproximateStrokeBoundingBox(WebCore::RenderElement const&amp;)
7   0x28564b904 WebCore::LegacyRenderSVGShape::calculateApproximateStrokeBoundingBox() const
8   0x28564a644 WebCore::LegacyRenderSVGShape::updateRepaintBoundingBox()
9   0x28564a540 WebCore::LegacyRenderSVGShape::layout()
10  0x285611acc WebCore::SVGRenderSupport::layoutChildren(WebCore::RenderElement&amp;, bool)
11  0x28563c9ac WebCore::LegacyRenderSVGContainer::layout()
12  0x285611acc WebCore::SVGRenderSupport::layoutChildren(WebCore::RenderElement&amp;, bool)
13  0x28563c9ac WebCore::LegacyRenderSVGContainer::layout()
14  0x285611acc WebCore::SVGRenderSupport::layoutChildren(WebCore::RenderElement&amp;, bool)
15  0x28564839c WebCore::LegacyRenderSVGRoot::layout()
16  0x2847d3384 WebCore::LocalFrameViewLayoutContext::performLayout()
17  0x2847b160c WebCore::LocalFrameViewLayoutContext::layout()
18  0x2847cca74 WebCore::LocalFrameView::updateLayoutAndStyleIfNeededRecursive()
19  0x284832188 WebCore::Page::layoutIfNeeded()
20  0x284832ca4 WebCore::Page::updateRendering()
21  0x11a3a5aac WebKit::WebPage::updateRendering()
22  0x119443dc8 WebKit::TiledCoreAnimationDrawingArea::updateRendering(WebKit::TiledCoreAnimationDrawingArea::UpdateRenderingType)
23  0x119443cc8 WebKit::TiledCoreAnimationDrawingArea::forceRepaint()
24  0x11a3a462c WebKit::WebPage::forceRepaintWithoutCallback()
25  0x119cbec04 WKBundlePageForceRepaint
26  0x10184959c WTR::InjectedBundlePage::dump()
27  0x10184d988 WTR::dumpAfterWaitAttributeIsRemoved(OpaqueWKBundlePage const*)
28  0x101848de4 WTR::InjectedBundlePage::frameDidChangeLocation(OpaqueWKBundleFrame const*)
29  0x101847250 WTR::InjectedBundlePage::didFinishLoadForFrame(OpaqueWKBundleFrame const*)
30  0x101845e1c WTR::InjectedBundlePage::didFinishLoadForFrame(OpaqueWKBundlePage const*, OpaqueWKBundleFrame const*, void const**, void const*)
31  0x119cafa18 WebKit::InjectedBundlePageLoaderClient::didFinishLoadForFrame(WebKit::WebPage&amp;, WebKit::WebFrame&amp;, WTF::RefPtr&lt;API::Object, WTF::RawPtrTraits&lt;API::Object&gt;, WTF::DefaultRefDerefTraits&lt;API::Object&gt;&gt;&amp;)
com.apple.WebKit.WebContent.Development terminated (pid 5864) for reason: crash
LEAK: 1 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986245</commentid>
    <comment_count>5</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2023-10-19 13:41:53 -0700</bug_when>
    <thetext>(In reply to Fujii Hironori from comment #4)
&gt; http/tests/svg/use-custom-property-inheritance.html  is crashing after this
&gt; change.
&gt; https://results.webkit.org/?suite=layout-tests&amp;test=http%2Ftests%2Fsvg%2Fuse-
&gt; custom-property-inheritance.html&amp;style=debug
&gt; 
&gt; https://ews-build.s3-us-west-2.amazonaws.com/macOS-AppleSilicon-Ventura-
&gt; Debug-WK2-Tests-EWS/ca059f9b-18153/http/tests/svg/use-custom-property-
&gt; inheritance-stderr.txt
&gt; 
&gt; ASSERTION FAILED: !renderer.hasNonScalingStroke()
&gt; /Volumes/Data/worker/macOS-AppleSilicon-Ventura-Debug-Build-EWS/build/Source/
&gt; WebCore/rendering/svg/SVGRenderSupport.cpp(577) : auto
&gt; WebCore::SVGRenderSupport::calculateApproximateStrokeBoundingBox(const
&gt; WebCore::RenderElement &amp;)::(anonymous class)::operator()(const auto &amp;,
&gt; WebCore::FloatRect) const [renderer:auto = WebCore::LegacyRenderSVGShape]
&gt; 1   0x12e6cf28c WTFCrash
&gt; 2   0x282ada7e0 WebCore::BaseAudioContext::isGraphOwner() const
&gt; 3   0x2856211f8 WebCore::FloatRect
&gt; WebCore::SVGRenderSupport::calculateApproximateStrokeBoundingBox(WebCore::
&gt; RenderElement
&gt; const&amp;)::$_2::operator()&lt;WebCore::LegacyRenderSVGShape&gt;(WebCore::
&gt; LegacyRenderSVGShape const&amp;, WebCore::FloatRect) const
&gt; 4   0x2856210a0 WebCore::FloatRect
&gt; WebCore::SVGRenderSupport::calculateApproximateStrokeBoundingBox(WebCore::
&gt; RenderElement
&gt; const&amp;)::$_1::operator()&lt;WebCore::LegacyRenderSVGShape&gt;(WebCore::
&gt; LegacyRenderSVGShape const&amp;, WebCore::FloatRect) const
&gt; 5   0x2856137dc auto
&gt; WebCore::SVGRenderSupport::calculateApproximateStrokeBoundingBox(WebCore::
&gt; RenderElement
&gt; const&amp;)::$_0::operator()&lt;WebCore::LegacyRenderSVGShape&gt;(WebCore::
&gt; LegacyRenderSVGShape const&amp;) const
&gt; 6   0x285613608
&gt; WebCore::SVGRenderSupport::calculateApproximateStrokeBoundingBox(WebCore::
&gt; RenderElement const&amp;)
&gt; 7   0x28564b904
&gt; WebCore::LegacyRenderSVGShape::calculateApproximateStrokeBoundingBox() const
&gt; 8   0x28564a644 WebCore::LegacyRenderSVGShape::updateRepaintBoundingBox()
&gt; 9   0x28564a540 WebCore::LegacyRenderSVGShape::layout()
&gt; 10  0x285611acc
&gt; WebCore::SVGRenderSupport::layoutChildren(WebCore::RenderElement&amp;, bool)
&gt; 11  0x28563c9ac WebCore::LegacyRenderSVGContainer::layout()
&gt; 12  0x285611acc
&gt; WebCore::SVGRenderSupport::layoutChildren(WebCore::RenderElement&amp;, bool)
&gt; 13  0x28563c9ac WebCore::LegacyRenderSVGContainer::layout()
&gt; 14  0x285611acc
&gt; WebCore::SVGRenderSupport::layoutChildren(WebCore::RenderElement&amp;, bool)
&gt; 15  0x28564839c WebCore::LegacyRenderSVGRoot::layout()
&gt; 16  0x2847d3384 WebCore::LocalFrameViewLayoutContext::performLayout()
&gt; 17  0x2847b160c WebCore::LocalFrameViewLayoutContext::layout()
&gt; 18  0x2847cca74
&gt; WebCore::LocalFrameView::updateLayoutAndStyleIfNeededRecursive()
&gt; 19  0x284832188 WebCore::Page::layoutIfNeeded()
&gt; 20  0x284832ca4 WebCore::Page::updateRendering()
&gt; 21  0x11a3a5aac WebKit::WebPage::updateRendering()
&gt; 22  0x119443dc8
&gt; WebKit::TiledCoreAnimationDrawingArea::updateRendering(WebKit::
&gt; TiledCoreAnimationDrawingArea::UpdateRenderingType)
&gt; 23  0x119443cc8 WebKit::TiledCoreAnimationDrawingArea::forceRepaint()
&gt; 24  0x11a3a462c WebKit::WebPage::forceRepaintWithoutCallback()
&gt; 25  0x119cbec04 WKBundlePageForceRepaint
&gt; 26  0x10184959c WTR::InjectedBundlePage::dump()
&gt; 27  0x10184d988 WTR::dumpAfterWaitAttributeIsRemoved(OpaqueWKBundlePage
&gt; const*)
&gt; 28  0x101848de4
&gt; WTR::InjectedBundlePage::frameDidChangeLocation(OpaqueWKBundleFrame const*)
&gt; 29  0x101847250
&gt; WTR::InjectedBundlePage::didFinishLoadForFrame(OpaqueWKBundleFrame const*)
&gt; 30  0x101845e1c
&gt; WTR::InjectedBundlePage::didFinishLoadForFrame(OpaqueWKBundlePage const*,
&gt; OpaqueWKBundleFrame const*, void const**, void const*)
&gt; 31  0x119cafa18
&gt; WebKit::InjectedBundlePageLoaderClient::didFinishLoadForFrame(WebKit::
&gt; WebPage&amp;, WebKit::WebFrame&amp;, WTF::RefPtr&lt;API::Object,
&gt; WTF::RawPtrTraits&lt;API::Object&gt;, WTF::DefaultRefDerefTraits&lt;API::Object&gt;&gt;&amp;)
&gt; com.apple.WebKit.WebContent.Development terminated (pid 5864) for reason:
&gt; crash
&gt; LEAK: 1 WebPageProxy

Oops, this assertion is stale. I&apos;ll remove it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986268</commentid>
    <comment_count>6</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2023-10-19 14:20:33 -0700</bug_when>
    <thetext>https://github.com/WebKit/WebKit/commit/cd9fc42579dc0b7307a9c1bb3f48a2115f1443c8 Fixed in this. It is a bit strange that the original patch was landed with safe-merge-queue :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986786</commentid>
    <comment_count>7</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2023-10-23 00:41:41 -0700</bug_when>
    <thetext>*** Bug 262409 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054363</commentid>
    <comment_count>8</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-08-21 00:29:12 -0700</bug_when>
    <thetext>Regressed: Bug 277624 – REGRESSION (269500@main Safari 17.5): Masked Curved Line Rendering Issue</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>