Changeset 220333 in webkit
- Timestamp:
- Aug 7, 2017 6:14:18 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r220320 r220333 1 2017-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 1 21 2017-08-05 Youenn Fablet <youenn@apple.com> 2 22 -
trunk/Source/WebCore/rendering/RenderView.cpp
r219121 r220333 342 342 343 343 if (shouldUsePrintingLayout()) { 344 ASSERT(m_pageLogicalSize); 344 if (!m_pageLogicalSize) 345 m_pageLogicalSize = LayoutSize(logicalWidth(), 0); 345 346 m_minPreferredLogicalWidth = m_pageLogicalSize->width(); 346 347 m_maxPreferredLogicalWidth = m_minPreferredLogicalWidth;
Note: See TracChangeset
for help on using the changeset viewer.