Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: third_party/WebKit/Source/core/css/ElementRuleCollector.cpp

Issue 1885453002: Rename Node::treeScope() to Node::treeScopeOrDocument() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..d653e019bfe21743e3bf3baec2ccb93dcebb6fa2 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->treeScopeOrDocument() == scopingNode->treeScopeOrDocument();
}
template<typename RuleDataListType>
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp ('k') | third_party/WebKit/Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698