[Webkit-unassigned] [Bug 184748] SVG Text rendering causes infinite loop (spinning wait cursor)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 24 18:03:27 PDT 2018


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

--- Comment #2 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
The hang happens because of a collapsing text run. A collapsing text run is a run which has logical attributes, i.e. text, but does not logical metrics, i.e. with and height.

The real problem is SVGTextLayoutEngine::currentLogicalCharacterAttributes() and SVGTextLayoutEngine::currentLogicalCharacterMetrics() do not advance m_layoutAttributesPosition based on the same condition.

-- SVGTextLayoutEngine::currentLogicalCharacterAttributes() advances m_layoutAttributesPosition only if (m_logicalCharacterOffset == logicalAttributes->context().text().length())

-- SVGTextLayoutEngine::currentLogicalCharacterMetrics() expects m_layoutAttributesPosition to be advanced if (m_logicalMetricsListOffset == textMetricsSize)

And these conditions will not match if the layoutAttribute is for a collapsed run.

-- 
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/20180425/75bac4ac/attachment.html>


More information about the webkit-unassigned mailing list