| Index: Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
|
| index 53674c1838260cb54269187d0ec2abe8967eb122..1aa35a2156319a3f7e0ebbef0c86e1bc28a1b05a 100644
|
| --- a/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1585,6 +1585,11 @@
|
|
|
| // WebLocalFrameImpl public ---------------------------------------------------------
|
|
|
| +WebLocalFrame* WebLocalFrame::create(WebFrameClient* client)
|
| +{
|
| + return WebLocalFrame::create(WebTreeScopeType::Document, client);
|
| +}
|
| +
|
| WebLocalFrame* WebLocalFrame::create(WebTreeScopeType scope, WebFrameClient* client)
|
| {
|
| return WebLocalFrameImpl::create(scope, client);
|
| @@ -1686,10 +1691,7 @@
|
| const AtomicString& name, HTMLFrameOwnerElement* ownerElement)
|
| {
|
| ASSERT(m_client);
|
| - WebTreeScopeType scope = frame()->document() == ownerElement->treeScope()
|
| - ? WebTreeScopeType::Document
|
| - : WebTreeScopeType::Shadow;
|
| - WebLocalFrameImpl* webframeChild = toWebLocalFrameImpl(m_client->createChildFrame(this, scope, name, static_cast<WebSandboxFlags>(ownerElement->sandboxFlags())));
|
| + WebLocalFrameImpl* webframeChild = toWebLocalFrameImpl(m_client->createChildFrame(this, name, static_cast<WebSandboxFlags>(ownerElement->sandboxFlags())));
|
| if (!webframeChild)
|
| return nullptr;
|
|
|
|
|