https://bugs.webkit.org/show_bug.cgi?id=64831
Reviewed by Beth Dakin.
I am not adding a test because the DumpRenderTree printing test machinery is based on PrintContext,
which does not exercise the code path on which this bug lies.
* page/FrameView.cpp:
(WebCore::FrameView::forceLayoutForPagination): Fixed an integer overflow.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@91314
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-07-19 Dan Bernstein <mitz@apple.com>
+
+ Nothing printed when specifying a very large maximum layout width
+ https://bugs.webkit.org/show_bug.cgi?id=64831
+
+ Reviewed by Beth Dakin.
+
+ I am not adding a test because the DumpRenderTree printing test machinery is based on PrintContext,
+ which does not exercise the code path on which this bug lies.
+
+ * page/FrameView.cpp:
+ (WebCore::FrameView::forceLayoutForPagination): Fixed an integer overflow.
+
2011-07-19 Nate Chapin <japhet@chromium.org>
[V8] Wait until no v8 context is on the stack before
bool horizontalWritingMode = root->style()->isHorizontalWritingMode();
int docLogicalWidth = horizontalWritingMode ? root->documentRect().width() : root->documentRect().height();
if (docLogicalWidth > pageLogicalWidth) {
- flooredPageLogicalWidth = std::min<int>(docLogicalWidth, pageLogicalWidth * maximumShrinkFactor);
+ flooredPageLogicalWidth = std::min<float>(docLogicalWidth, pageLogicalWidth * maximumShrinkFactor);
if (pageLogicalHeight)
root->setPageLogicalHeight(flooredPageLogicalWidth / pageSize.width() * pageSize.height());
root->setLogicalWidth(flooredPageLogicalWidth);