Index: sky/engine/core/html/HTMLIFrameElement.cpp |
diff --git a/sky/engine/core/html/HTMLIFrameElement.cpp b/sky/engine/core/html/HTMLIFrameElement.cpp |
index 30721b78c65c0ddbffc594b0709129e3a3aa17c8..29b0908cced9a23bf9767949d267f86f4c51d62c 100644 |
--- a/sky/engine/core/html/HTMLIFrameElement.cpp |
+++ b/sky/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); |
} |
} |