Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index ada21e0cbe30181290d227c3d938e713122be54c..35c1db9241d67355d0c58d090082f7bc8a46b473 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -205,9 +205,9 @@ FrameView::~FrameView() |
ASSERT(m_frame); |
ASSERT(m_frame->view() != this || !m_frame->contentRenderer()); |
- RenderPart* renderer = m_frame->ownerRenderer(); |
- if (renderer && renderer->widget() == this) |
- renderer->setWidget(nullptr); |
+ HTMLFrameOwnerElement* ownerElement = m_frame->ownerElement(); |
+ if (ownerElement && ownerElement->ownedWidget() == this) |
+ ownerElement->setWidget(nullptr); |
} |
void FrameView::reset() |