WebCore:
[WebKit-https.git] / WebCore / dom / Node.cpp
index 924474301e9406b4884acdd0b246c0aea0fc4a0a..505c7c6bb4ceeeb6bc03f82ac19fdc0adbd322ed 100644 (file)
@@ -1104,6 +1104,14 @@ Node* Node::shadowTreeRootNode()
     return 0;
 }
 
     return 0;
 }
 
+bool Node::isInShadowTree()
+{
+    for (Node* n = this; n; n = n->parentNode())
+        if (n->isShadowNode())
+            return true;
+    return false;
+}
+
 bool Node::isBlockFlow() const
 {
     return renderer() && renderer()->isBlockFlow();
 bool Node::isBlockFlow() const
 {
     return renderer() && renderer()->isBlockFlow();