Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index 56bf7f9f9a5e801cd16df98704fada0d2203111f..8b9a94f730d889f29fef9fb98119652ce8f424f8 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -990,8 +990,7 @@ PassRefPtrWillBeRawPtr<Node> Document::adoptNode(PassRefPtrWillBeRawPtr<Node> so |
if (source->isFrameOwnerElement()) { |
HTMLFrameOwnerElement* frameOwnerElement = toHTMLFrameOwnerElement(source.get()); |
- // FIXME(kenrb): the downcast can be removed when the FrameTree supports RemoteFrames. |
- if (frame() && frame()->tree().isDescendantOf(toLocalFrameTemporary(frameOwnerElement->contentFrame()))) { |
+ if (frame() && frame()->tree().isDescendantOf(frameOwnerElement->contentFrame())) { |
exceptionState.throwDOMException(HierarchyRequestError, "The node provided is a frame which contains this document."); |
return nullptr; |
} |