Index: third_party/WebKit/Source/core/dom/shadow/InsertionPoint.h |
diff --git a/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.h b/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.h |
index d34aa24e285ebaac8119f1f16295cd4e718eaa27..ca396d07ae506433fb0db5bf839291f7b01ebaf2 100644 |
--- a/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.h |
+++ b/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.h |
@@ -104,9 +104,9 @@ inline ElementShadow* shadowWhereNodeCanBeDistributed(const Node& node) |
if (!parent) |
return 0; |
if (parent->isShadowRoot() && !toShadowRoot(parent)->isYoungest()) |
- return node.shadowHost()->shadow(); |
+ return node.ownerShadowHost()->shadow(); |
if (isActiveInsertionPoint(*parent)) |
- return node.shadowHost()->shadow(); |
+ return node.ownerShadowHost()->shadow(); |
if (parent->isElementNode()) |
return toElement(parent)->shadow(); |
return 0; |