| Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| index ca9d1bc7267077186eeefaa6633d1ab769f95e36..0b1da47bc847bdb0a5164969b3152f79de32ee36 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1540,7 +1540,7 @@ LocalFrame* WebLocalFrameImpl::createChildFrame(const FrameLoadRequest& request,
|
| {
|
| DCHECK(m_client);
|
| TRACE_EVENT0("blink", "WebLocalFrameImpl::createChildframe");
|
| - WebTreeScopeType scope = frame()->document() == ownerElement->treeScope()
|
| + WebTreeScopeType scope = frame()->document() == ownerElement->treeScopeOrDocument()
|
| ? WebTreeScopeType::Document
|
| : WebTreeScopeType::Shadow;
|
| WebFrameOwnerProperties ownerProperties(ownerElement->scrollingMode(), ownerElement->marginWidth(), ownerElement->marginHeight());
|
|
|