Index: trunk/Source/core/dom/StyleSheetScopingNodeList.h |
=================================================================== |
--- trunk/Source/core/dom/StyleSheetScopingNodeList.h (revision 162246) |
+++ trunk/Source/core/dom/StyleSheetScopingNodeList.h (working copy) |
@@ -34,6 +34,16 @@ |
namespace WebCore { |
+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: |