Index: Source/core/frame/Frame.cpp |
diff --git a/Source/core/frame/Frame.cpp b/Source/core/frame/Frame.cpp |
index 869c7b02933ef1aeb3d4e2f75cf7804a4e2d4b99..555b3c1f127fdcc36ea04fda605592207b8b7aa0 100644 |
--- a/Source/core/frame/Frame.cpp |
+++ b/Source/core/frame/Frame.cpp |
@@ -480,11 +480,10 @@ void Frame::createView(const IntSize& viewportSize, const Color& backgroundColor |
if (isMainFrame) |
frameView->setParentVisible(true); |
- if (ownerRenderer()) |
- ownerRenderer()->setWidget(frameView); |
- |
- if (HTMLFrameOwnerElement* owner = ownerElement()) |
+ if (HTMLFrameOwnerElement* owner = ownerElement()) { |
+ owner->setWidget(frameView); |
view()->setCanHaveScrollbars(owner->scrollingMode() != ScrollbarAlwaysOff); |
+ } |
} |
String Frame::layerTreeAsText(unsigned flags) const |