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 e257a4c65b3e335fd7492695b0b77118a61b9105..024437c5f1e349466be6bf27a684dbbd953e687d 100644 |
--- a/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp |
+++ b/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp |
@@ -111,7 +111,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->containingTreeScope() == scopingNode->containingTreeScope(); |
} |
template<typename RuleDataListType> |