| Index: Source/core/layout/LayoutText.cpp
|
| diff --git a/Source/core/layout/LayoutText.cpp b/Source/core/layout/LayoutText.cpp
|
| index 27fe5ce6b240c11aa8117a8c6fe3a48f1993a303..00deaa6e394b2f8dc7d644b77c857de8a1cab5f6 100644
|
| --- a/Source/core/layout/LayoutText.cpp
|
| +++ b/Source/core/layout/LayoutText.cpp
|
| @@ -190,7 +190,7 @@ void LayoutText::styleDidChange(StyleDifference diff, const ComputedStyle* oldSt
|
| // We do have to schedule layouts, though, since a style change can force us to
|
| // need to relayout.
|
| if (diff.needsFullLayout()) {
|
| - setNeedsLayoutAndPrefWidthsRecalc();
|
| + setNeedsLayoutAndPrefWidthsRecalc(LayoutInvalidationReason::StyleChange);
|
| m_knownToHaveNoOverflowAndNoFallbackFonts = false;
|
| }
|
|
|
| @@ -1436,7 +1436,7 @@ void LayoutText::setText(PassRefPtr<StringImpl> text, bool force)
|
| // insertChildNode() fails to set true to owner. To avoid that, we call
|
| // setNeedsLayoutAndPrefWidthsRecalc() only if this LayoutText has parent.
|
| if (parent())
|
| - setNeedsLayoutAndPrefWidthsRecalc();
|
| + setNeedsLayoutAndPrefWidthsRecalc(LayoutInvalidationReason::TextChanged);
|
| m_knownToHaveNoOverflowAndNoFallbackFonts = false;
|
|
|
| if (AXObjectCache* cache = document().existingAXObjectCache())
|
|
|