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

Unified Diff: Source/WebCore/dom/Node.cpp

Issue 10823003: Merge 123180 - Introduce Node::shadowHost() (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 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/WebCore/dom/Node.h ('k') | Source/WebCore/html/shadow/CalendarPickerElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
{
« no previous file with comments | « Source/WebCore/dom/Node.h ('k') | Source/WebCore/html/shadow/CalendarPickerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698