Index: third_party/WebKit/Source/core/html/HTMLElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp |
index 8a769e463247fc9a050100fcd8c0ca6c9659a497..09c5d06855a4ac4bdef93d8668ff39d5ca760ff2 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp |
@@ -792,7 +792,7 @@ void HTMLElement::adjustDirectionalityIfNeededAfterChildAttributeChanged(Element |
Element* elementToAdjust = this; |
for (; elementToAdjust; elementToAdjust = FlatTreeTraversal::parentElement(*elementToAdjust)) { |
if (elementAffectsDirectionality(elementToAdjust)) { |
- elementToAdjust->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::WritingModeChange)); |
+ elementToAdjust->setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::WritingModeChange)); |
return; |
} |
} |
@@ -803,7 +803,7 @@ void HTMLElement::calculateAndAdjustDirectionality() |
{ |
TextDirection textDirection = directionality(); |
if (layoutObject() && layoutObject()->style() && layoutObject()->style()->direction() != textDirection) |
- setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::WritingModeChange)); |
+ setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::WritingModeChange)); |
} |
void HTMLElement::adjustDirectionalityIfNeededAfterChildrenChanged(const ChildrenChange& change) |