diff options
Diffstat (limited to 'WebCore/rendering/RenderFrame.cpp')
-rw-r--r-- | WebCore/rendering/RenderFrame.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/WebCore/rendering/RenderFrame.cpp b/WebCore/rendering/RenderFrame.cpp index a6d69e3..e7ad76a 100644 --- a/WebCore/rendering/RenderFrame.cpp +++ b/WebCore/rendering/RenderFrame.cpp @@ -81,14 +81,13 @@ void RenderFrame::layout() view->layout(); // We can only grow in width and height because if positionFrames gives us a width and we become smaller, // then the fixup process of forcing the frame to fill extra space will fail. - const int docLeft = root->docLeft(); - if (width() > root->docWidth(docLeft)) { - view->resize(root->docWidth(docLeft), 0); + if (width() > root->docWidth()) { + view->resize(root->docWidth(), 0); view->layout(); } // Honor the height set by RenderFrameSet::positionFrames unless our document height is larger. - setHeight(max(root->docHeight(root->docTop()), height())); - setWidth(max(root->docWidth(docLeft), width())); + setHeight(max(root->docHeight(), height())); + setWidth(max(root->docWidth(), width())); } } setNeedsLayout(false); |