Chromium Code Reviews| 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..324127d18b0354194bdf0606c09d2051ec003614 100644 |
| --- a/third_party/WebKit/Source/core/dom/Document.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp |
| @@ -991,7 +991,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. |
|
sof
2015/11/20 21:20:38
remove the FIXME?
dcheng
2015/11/21 00:11:56
Oops, missed this when I was pulling cleanup patch
|
| - 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; |
| } |