Index: Source/core/frame/RemoteFrame.cpp |
diff --git a/Source/core/frame/RemoteFrame.cpp b/Source/core/frame/RemoteFrame.cpp |
index bfc8454c1a515d1393db9fb054210ab64887447a..c54b26029e4e7e998bf97bef1f87ba0326197ea0 100644 |
--- a/Source/core/frame/RemoteFrame.cpp |
+++ b/Source/core/frame/RemoteFrame.cpp |
@@ -6,7 +6,7 @@ |
#include "core/frame/RemoteFrame.h" |
#include "core/frame/RemoteFrameView.h" |
-#include "core/rendering/RenderPart.h" |
+#include "core/html/HTMLFrameOwnerElement.h" |
namespace WebCore { |
@@ -36,8 +36,10 @@ void RemoteFrame::createView() |
RefPtr<RemoteFrameView> view = RemoteFrameView::create(this); |
setView(view); |
- if (ownerRenderer()) |
- ownerRenderer()->setWidget(view); |
+ if (ownerRenderer()) { |
+ ASSERT(ownerElement()); |
+ ownerElement()->setWidget(view); |
+ } |
} |
} // namespace WebCore |