Changeset 84442 in webkit


Ignore:
Timestamp:
Apr 20, 2011 5:35:24 PM (13 years ago)
Author:
weinig@apple.com
Message:

2011-04-20 Sam Weinig <sam@webkit.org>

Reviewed by Anders Carlsson.

WebKit2: Can't scroll page after printing on Yahoo.com and other sites
<rdar://problem/9233291>
https://bugs.webkit.org/show_bug.cgi?id=59049

  • page/Frame.cpp: (WebCore::Frame::setPrinting): Match Mac WebKit1 code when ending printing, and call forceLayout() instead of forceLayoutForPagination().
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r84441 r84442  
     12011-04-20  Sam Weinig  <sam@webkit.org>
     2
     3        Reviewed by Anders Carlsson.
     4
     5        WebKit2: Can't scroll page after printing on Yahoo.com and other sites
     6        <rdar://problem/9233291>
     7        https://bugs.webkit.org/show_bug.cgi?id=59049
     8
     9        * page/Frame.cpp:
     10        (WebCore::Frame::setPrinting): Match Mac WebKit1 code when ending printing,
     11        and call forceLayout() instead of forceLayoutForPagination().
     12
    1132011-04-20  Kenneth Russell  <kbr@google.com>
    214
  • trunk/Source/WebCore/page/Frame.cpp

    r83645 r84442  
    508508
    509509    m_doc->styleSelectorChanged(RecalcStyleImmediately);
    510     view()->forceLayoutForPagination(pageSize, maximumShrinkRatio, shouldAdjustViewSize);
     510    if (printing)
     511        view()->forceLayoutForPagination(pageSize, maximumShrinkRatio, shouldAdjustViewSize);
     512    else {
     513        view()->forceLayout();
     514        if (shouldAdjustViewSize == AdjustViewSize)
     515            view()->adjustViewSize();
     516    }
    511517
    512518    // Subframes of the one we're printing don't lay out to the page size.
Note: See TracChangeset for help on using the changeset viewer.