⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 220510 in webkit


Ignore:
Timestamp:
Aug 9, 2017, 9:31:44 PM (9 years ago)
Author:
jmarcell@apple.com
Message:

Cherry-pick r220333. rdar://problem/33810934

Location:
branches/safari-604-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-604-branch/Source/WebCore/ChangeLog

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

    r219121 r220510  
    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.