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: |