Index: Source/core/html/HTMLElement.cpp |
diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp |
index 2ae40944acbf5638ef602b02fe2ac16754ac0e08..01735f5ad9f27253a0b8eb32f930d1147e70a760 100644 |
--- a/Source/core/html/HTMLElement.cpp |
+++ b/Source/core/html/HTMLElement.cpp |
@@ -750,7 +750,7 @@ void HTMLElement::adjustDirectionalityIfNeededAfterChildAttributeChanged(Element |
Element* elementToAdjust = this; |
for (; elementToAdjust; elementToAdjust = elementToAdjust->parentElement()) { |
if (elementAffectsDirectionality(elementToAdjust)) { |
- elementToAdjust->setNeedsStyleRecalc(SubtreeStyleChange); |
+ elementToAdjust->setNeedsStyleRecalc(StyleRecalcDueToWritingModeChange, SubtreeStyleChange); |
return; |
} |
} |
@@ -765,7 +765,7 @@ void HTMLElement::calculateAndAdjustDirectionality() |
for (ShadowRoot* root = youngestShadowRoot(); root; root = root->olderShadowRoot()) |
setHasDirAutoFlagRecursively(root, hasDirectionAuto()); |
if (renderer() && renderer()->style() && renderer()->style()->direction() != textDirection) |
- setNeedsStyleRecalc(SubtreeStyleChange); |
+ setNeedsStyleRecalc(StyleRecalcDueToWritingModeChange, SubtreeStyleChange); |
} |
void HTMLElement::adjustDirectionalityIfNeededAfterChildrenChanged(const ChildrenChange& change) |