Index: Source/core/frame/Frame.cpp |
diff --git a/Source/core/frame/Frame.cpp b/Source/core/frame/Frame.cpp |
index 7886475dc9376a359111fc0f84045272f6073f13..0fd060e59ca70048a640991dbdbe6fe171b6aacd 100644 |
--- a/Source/core/frame/Frame.cpp |
+++ b/Source/core/frame/Frame.cpp |
@@ -479,11 +479,11 @@ 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()) { |
+ if (ownerRenderer()) |
+ owner->setWidget(frameView); |
view()->setCanHaveScrollbars(owner->scrollingMode() != ScrollbarAlwaysOff); |
+ } |
} |
String Frame::layerTreeAsText(unsigned flags) const |