| Index: sky/engine/core/html/HTMLIFrameElement.cpp
|
| diff --git a/sky/engine/core/html/HTMLIFrameElement.cpp b/sky/engine/core/html/HTMLIFrameElement.cpp
|
| index 0885e331baf4509eb03eb9383c730ac4eba7c830..8e98d5407a02831b480ed32d3a8e8f288a3ad9e2 100644
|
| --- a/sky/engine/core/html/HTMLIFrameElement.cpp
|
| +++ b/sky/engine/core/html/HTMLIFrameElement.cpp
|
| @@ -19,7 +19,8 @@ PassRefPtr<HTMLIFrameElement> HTMLIFrameElement::create(Document& document)
|
| }
|
|
|
| HTMLIFrameElement::HTMLIFrameElement(Document& document)
|
| - : HTMLElement(HTMLNames::iframeTag, document)
|
| + : HTMLElement(HTMLNames::iframeTag, document),
|
| + m_contentView(nullptr)
|
| {
|
| }
|
|
|
| @@ -48,6 +49,12 @@ RenderObject* HTMLIFrameElement::createRenderer(RenderStyle* style)
|
| return new RenderRemote(this);
|
| }
|
|
|
| +void HTMLIFrameElement::OnViewDestroyed(mojo::View* view)
|
| +{
|
| + DCHECK_EQ(view, m_contentView);
|
| + m_contentView = nullptr;
|
| +}
|
| +
|
| void HTMLIFrameElement::createView()
|
| {
|
| String urlString = stripLeadingAndTrailingHTMLSpaces(getAttribute(HTMLNames::srcAttr));
|
| @@ -59,7 +66,7 @@ void HTMLIFrameElement::createView()
|
| return;
|
|
|
| KURL url = document().completeURL(urlString);
|
| - parentFrame->loaderClient()->createView(url);
|
| + m_contentView = parentFrame->loaderClient()->createChildFrame(url);
|
| }
|
|
|
| }
|
|
|