Skip to content

Commit

Permalink
Unreviewed, initialize canUseSimplifiedTextMeasuring for each run
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=272471
rdar://126218186

* Source/WebCore/rendering/svg/SVGTextMetricsBuilder.cpp:
(WebCore::SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer):

Canonical link: https://commits.webkit.org/277322@main
  • Loading branch information
Constellation committed Apr 10, 2024
1 parent dc59b07 commit 6249923
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/WebCore/rendering/svg/SVGTextMetricsBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ void SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer(RenderSVGInlin
m_run = SVGTextMetrics::constructTextRun(text);
m_isComplexText = scaledFont.codePath(m_run) == FontCascade::CodePath::Complex;

m_canUseSimplifiedTextMeasuring = false;
if (!m_isComplexText) {
if (auto cachedValue = text.canUseSimplifiedTextMeasuring())
m_canUseSimplifiedTextMeasuring = cachedValue.value();
Expand Down

0 comments on commit 6249923

Please sign in to comment.