diff --git a/engine/core/html/HTMLIFrameElement.cpp b/engine/core/html/HTMLIFrameElement.cpp index 30721b78c65..29b0908cced 100644 --- a/engine/core/html/HTMLIFrameElement.cpp +++ b/engine/core/html/HTMLIFrameElement.cpp @@ -26,8 +26,6 @@ HTMLIFrameElement::HTMLIFrameElement(Document& document) HTMLIFrameElement::~HTMLIFrameElement() { - if (m_contentView) - m_contentView->RemoveObserver(this); } Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode* insertionPoint) @@ -41,8 +39,9 @@ Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode void HTMLIFrameElement::removedFrom(ContainerNode* insertionPoint) { HTMLElement::removedFrom(insertionPoint); - if (m_contentView) - m_contentView->Destroy(); + if (insertionPoint->inDocument()) { + // TODO(mpcomplete): Tear down the mojo View. + } } RenderObject* HTMLIFrameElement::createRenderer(RenderStyle* style) @@ -68,8 +67,6 @@ void HTMLIFrameElement::createView() KURL url = document().completeURL(urlString); m_contentView = parentFrame->loaderClient()->createChildFrame(url); - if (m_contentView) - m_contentView->AddObserver(this); } } diff --git a/tests/lowlevel/iframe.sky b/tests/lowlevel/iframe.sky index 8c3682c3a38..2073ce66fec 100644 --- a/tests/lowlevel/iframe.sky +++ b/tests/lowlevel/iframe.sky @@ -1,12 +1,6 @@ - Should not render This is an iframe element. Placeholder. Small iframe should render iframe correctly. - -