| 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 453479c8ce684b202d19f90d1ff2e7c511924bf1..9a48c6cd17ed299f91cf77f01c2e5c84562385fb 100644
|
| --- a/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
|
| +++ b/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.cpp
|
| @@ -165,12 +165,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;
|
| }
|
|
|
|
|