Index: Source/WebCore/dom/Node.cpp |
=================================================================== |
--- Source/WebCore/dom/Node.cpp (リビジョン 123547) |
+++ Source/WebCore/dom/Node.cpp (作業コピー) |
@@ -1412,6 +1412,12 @@ |
return parentOrHostNode() ? parentOrHostNode()->canStartSelection() : true; |
} |
+Element* Node::shadowHost() const |
+{ |
+ if (ShadowRoot* root = shadowRoot()) |
+ return root->host(); |
+ return 0; |
+} |
Node* Node::shadowAncestorNode() const |
{ |