Changeset 220333 in webkit


Ignore:
Timestamp:
Aug 7, 2017 6:14:18 AM (7 years ago)
Author:
Antti Koivisto
Message:

REGRESSION (r219121): Airmail 3 prints header part only.
https://bugs.webkit.org/show_bug.cgi?id=175258
<rdar://problem/33601173>

Reviewed by Andreas Kling.

When a WK1 WebViw is printed via AppKit view hierarchy it won't explictly set the page width
but uses the existing width. r219121 assumes that all printing code paths set the page width.

No test, there appears to be no good way to test AppKit printing behaviors without adding complicated
new testing infrastructure.

  • rendering/RenderView.cpp:

(WebCore::RenderView::layout):

If we are in printing layout and don't have page width set yet then use the current view width.
This matches the behavior prior r219121.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r220320 r220333  
     12017-08-07  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION (r219121): Airmail 3 prints header part only.
     4        https://bugs.webkit.org/show_bug.cgi?id=175258
     5        <rdar://problem/33601173>
     6
     7        Reviewed by Andreas Kling.
     8
     9        When a WK1 WebViw is printed via AppKit view hierarchy it won't explictly set the page width
     10        but uses the existing width. r219121 assumes that all printing code paths set the page width.
     11
     12        No test, there appears to be no good way to test AppKit printing behaviors without adding complicated
     13        new testing infrastructure.
     14
     15        * rendering/RenderView.cpp:
     16        (WebCore::RenderView::layout):
     17
     18            If we are in printing layout and don't have page width set yet then use the current view width.
     19            This matches the behavior prior r219121.
     20
    1212017-08-05  Youenn Fablet  <youenn@apple.com>
    222
  • trunk/Source/WebCore/rendering/RenderView.cpp

    r219121 r220333  
    342342
    343343    if (shouldUsePrintingLayout()) {
    344         ASSERT(m_pageLogicalSize);
     344        if (!m_pageLogicalSize)
     345            m_pageLogicalSize = LayoutSize(logicalWidth(), 0);
    345346        m_minPreferredLogicalWidth = m_pageLogicalSize->width();
    346347        m_maxPreferredLogicalWidth = m_minPreferredLogicalWidth;
Note: See TracChangeset for help on using the changeset viewer.