| Index: third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp b/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
|
| index 2f6ed1ab9427b30f27add7f2e922bafa9fcc7066..81c02522e8f530087a44df736069403c94a8d7e6 100644
|
| --- a/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
|
| +++ b/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
|
| @@ -117,7 +117,7 @@ void ElementRuleCollector::addElementStyleProperties(const StylePropertySet* pro
|
| static bool rulesApplicableInCurrentTreeScope(const Element* element, const ContainerNode* scopingNode)
|
| {
|
| // Check if the rules come from a shadow style sheet in the same tree scope.
|
| - return !scopingNode || element->treeScope() == scopingNode->treeScope();
|
| + return !scopingNode || element->rootTreeScope() == scopingNode->rootTreeScope();
|
| }
|
|
|
| template<typename RuleDataListType>
|
|
|