REGRESSION (r219121): Airmail 3 prints header part only.
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Aug 2017 13:14:18 +0000 (13:14 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Aug 2017 13:14:18 +0000 (13:14 +0000)
commit3bd307a76b094162ae40265c47c79a0fee4358b9
tree2f0a2c87f5c4325b84f5256cc14b1752ed307c4e
parentd1bd197190b08dee2435c4c1bc50ab379c3e428d
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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@220333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderView.cpp