diff options
Diffstat (limited to 'third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp')
-rw-r--r-- | third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp index 5243c2c..b78cebe 100644 --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp @@ -96,8 +96,10 @@ void LayoutSVGInlineText::styleDidChange(StyleDifference diff, const ComputedSty return; // The text metrics may be influenced by style changes. - if (LayoutSVGText* textLayoutObject = LayoutSVGText::locateLayoutSVGTextAncestor(this)) + if (LayoutSVGText* textLayoutObject = LayoutSVGText::locateLayoutSVGTextAncestor(this)) { + textLayoutObject->setNeedsTextMetricsUpdate(); textLayoutObject->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::StyleChange); + } } InlineTextBox* LayoutSVGInlineText::createTextBox(int start, unsigned short length) |