Changeset 91314 in webkit


Ignore:
Timestamp:
Jul 19, 2011 3:49:32 PM (13 years ago)
Author:
mitz@apple.com
Message:

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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r91309 r91314  
     12011-07-19  Dan Bernstein  <mitz@apple.com>
     2
     3        Nothing printed when specifying a very large maximum layout width
     4        https://bugs.webkit.org/show_bug.cgi?id=64831
     5
     6        Reviewed by Beth Dakin.
     7
     8        I am not adding a test because the DumpRenderTree printing test machinery is based on PrintContext,
     9        which does not exercise the code path on which this bug lies.
     10
     11        * page/FrameView.cpp:
     12        (WebCore::FrameView::forceLayoutForPagination): Fixed an integer overflow.
     13
    1142011-07-19  Nate Chapin  <japhet@chromium.org>
    215
  • trunk/Source/WebCore/page/FrameView.cpp

    r91027 r91314  
    26332633        int docLogicalWidth = horizontalWritingMode ? root->documentRect().width() : root->documentRect().height();
    26342634        if (docLogicalWidth > pageLogicalWidth) {
    2635             flooredPageLogicalWidth = std::min<int>(docLogicalWidth, pageLogicalWidth * maximumShrinkFactor);
     2635            flooredPageLogicalWidth = std::min<float>(docLogicalWidth, pageLogicalWidth * maximumShrinkFactor);
    26362636            if (pageLogicalHeight)
    26372637                root->setPageLogicalHeight(flooredPageLogicalWidth / pageSize.width() * pageSize.height());
Note: See TracChangeset for help on using the changeset viewer.