[Webkit-unassigned] [Bug 264076] New: SVGTextMetricsBuilder::measureTextRenderer is getting called multiple times on the same RenderSVGText

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 1 20:07:40 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=264076

            Bug ID: 264076
           Summary: SVGTextMetricsBuilder::measureTextRenderer is getting
                    called multiple times on the same RenderSVGText
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rniwa at webkit.org
                CC: sabouhallawa at apple.com, zimmermann at kde.org

According to Yusuke’s analysis, we’re calling SVGTextMetricsBuilder::measureTextRenderer on the same RenderSVGText multiple times per layout.

> RenderSVGText::willLayout's m_layoutAttributesBuilder.rebuildMetricsForTextRenderer first runs SVGTextMetricsBuilder::measureTextRenderer for each child RenderSVGInlineText. And then, in layout, we run m_layoutAttributesBuilder.buildLayoutAttributesForForSubtree, which runs measureTextRenderer again.

To reproduce the issue, visit https://speedometer-preview.netlify.app/?developerMode=&tags=svg#details and activate "Start Test".

<rdar://117778942>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231102/6c8bdbd4/attachment.htm>


More information about the webkit-unassigned mailing list