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

Unified Diff: Source/core/dom/StyleSheetScopingNodeList.h

Issue 53683007: Have SelectorQuery API take rootNode by reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/core/dom/SelectorQuery.cpp ('k') | Source/core/html/HTMLFormControlElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleSheetScopingNodeList.h
diff --git a/Source/core/dom/StyleSheetScopingNodeList.h b/Source/core/dom/StyleSheetScopingNodeList.h
index 42ebda3462e715856ddbe2977cd61152180d8f63..790be1322ae8ad8a15995d7c833371e993125da3 100644
--- a/Source/core/dom/StyleSheetScopingNodeList.h
+++ b/Source/core/dom/StyleSheetScopingNodeList.h
@@ -39,6 +39,11 @@ inline bool isTreeScopeRoot(const Node* node)
return !node || node->isDocumentNode() || node->isShadowRoot();
}
+inline bool isTreeScopeRoot(const Node& node)
+{
+ return node.isDocumentNode() || node.isShadowRoot();
+}
+
class StyleSheetScopingNodeList {
WTF_MAKE_NONCOPYABLE(StyleSheetScopingNodeList); WTF_MAKE_FAST_ALLOCATED;
public:
« no previous file with comments | « Source/core/dom/SelectorQuery.cpp ('k') | Source/core/html/HTMLFormControlElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698