Index: Source/core/html/HTMLElement.cpp |
diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp |
index 45ef906e29a38a5c84f1fcd85872483bc8b3d7d6..2dbbb825c6e3bb8f5dd6661897eb430111f0de85 100644 |
--- a/Source/core/html/HTMLElement.cpp |
+++ b/Source/core/html/HTMLElement.cpp |
@@ -775,7 +775,7 @@ void HTMLElement::adjustDirectionalityIfNeededAfterChildAttributeChanged(Element |
Element* elementToAdjust = this; |
for (; elementToAdjust; elementToAdjust = elementToAdjust->parentElement()) { |
if (elementAffectsDirectionality(elementToAdjust)) { |
- elementToAdjust->setNeedsStyleRecalc(); |
+ elementToAdjust->setNeedsStyleRecalc(SubtreeStyleChange); |
return; |
} |
} |
@@ -788,7 +788,7 @@ void HTMLElement::calculateAndAdjustDirectionality() |
TextDirection textDirection = directionality(&strongDirectionalityTextNode); |
setHasDirAutoFlagRecursively(this, true, strongDirectionalityTextNode); |
if (renderer() && renderer()->style() && renderer()->style()->direction() != textDirection) |
- setNeedsStyleRecalc(); |
+ setNeedsStyleRecalc(SubtreeStyleChange); |
} |
void HTMLElement::adjustDirectionalityIfNeededAfterChildrenChanged(Node* beforeChange, int childCountDelta) |