| Index: Source/core/frame/LocalFrame.cpp
|
| diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
|
| index adfa8ad6ddaa9f1f29dc00c7fc6da1c1ea667bcf..381d18ef01a6dfcc814db11395c5e11101814ebc 100644
|
| --- a/Source/core/frame/LocalFrame.cpp
|
| +++ b/Source/core/frame/LocalFrame.cpp
|
| @@ -361,8 +361,11 @@ void LocalFrame::createView(const IntSize& viewportSize, const Color& background
|
| if (isMainFrame)
|
| frameView->setParentVisible(true);
|
|
|
| - if (ownerRenderer())
|
| - ownerRenderer()->setWidget(frameView);
|
| + if (ownerRenderer()) {
|
| + HTMLFrameOwnerElement* owner = ownerElement();
|
| + ASSERT(owner);
|
| + owner->setWidget(frameView);
|
| + }
|
|
|
| if (HTMLFrameOwnerElement* owner = ownerElement())
|
| view()->setCanHaveScrollbars(owner->scrollingMode() != ScrollbarAlwaysOff);
|
|
|