| Index: third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp b/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
|
| index db5fa17e453f15b34e8499e989ab087bbcc3568d..efb8080eef80275a4cc7af35d0ea265f4110a4d3 100644
|
| --- a/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
|
| +++ b/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
|
| @@ -166,12 +166,7 @@ bool StyleInvalidator::SiblingData::matchCurrentInvalidationSets(Element& elemen
|
| if (invalidationSet.invalidatesElement(element)) {
|
| const DescendantInvalidationSet& descendants = invalidationSet.descendants();
|
| if (descendants.wholeSubtreeInvalid()) {
|
| - // Avoid directly setting SubtreeStyleChange on element, or ContainerNode::checkForChildrenAdjacentRuleChanges()
|
| - // may propagate the SubtreeStyleChange to our own siblings' subtrees.
|
| -
|
| - for (Element* child = ElementTraversal::firstChild(element); child; child = ElementTraversal::nextSibling(*child)) {
|
| - child->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::SiblingSelector));
|
| - }
|
| + element.setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::StyleInvalidator));
|
| return true;
|
| }
|
|
|
|
|