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

Changeset 236288 in webkit


Ignore:
Timestamp:
Sep 20, 2018, 3:27:28 PM (8 years ago)
Author:
Alan Bujtas
Message:

Release assert under RenderView::pageOrViewLogicalHeight
https://bugs.webkit.org/show_bug.cgi?id=189798
<rdar://problem/43659749>

Reviewed by Simon Fraser.

Source/WebCore:

Only the mainframe's render view is sized to the page while printing.
Use the matching check (see RenderView::layout) when accessing m_pageLogicalSize.

Test: printing/crash-while-formatting-subframe-for-printing.html

  • rendering/RenderView.cpp:

(WebCore::RenderView::pageOrViewLogicalHeight const):

LayoutTests:

  • printing/crash-while-formatting-subframe-for-printing-expected.txt: Added.
  • printing/crash-while-formatting-subframe-for-printing.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r236286 r236288  
     12018-09-20  Zalan Bujtas  <zalan@apple.com>
     2
     3        Release assert under RenderView::pageOrViewLogicalHeight
     4        https://bugs.webkit.org/show_bug.cgi?id=189798
     5        <rdar://problem/43659749>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * printing/crash-while-formatting-subframe-for-printing-expected.txt: Added.
     10        * printing/crash-while-formatting-subframe-for-printing.html: Added.
     11
    1122018-09-20  Sihui Liu  <sihui_liu@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r236286 r236288  
     12018-09-20  Zalan Bujtas  <zalan@apple.com>
     2
     3        Release assert under RenderView::pageOrViewLogicalHeight
     4        https://bugs.webkit.org/show_bug.cgi?id=189798
     5        <rdar://problem/43659749>
     6
     7        Reviewed by Simon Fraser.
     8
     9        Only the mainframe's render view is sized to the page while printing.
     10        Use the matching check (see RenderView::layout) when accessing m_pageLogicalSize.
     11
     12        Test: printing/crash-while-formatting-subframe-for-printing.html
     13
     14        * rendering/RenderView.cpp:
     15        (WebCore::RenderView::pageOrViewLogicalHeight const):
     16
    1172018-09-20  Sihui Liu  <sihui_liu@apple.com>
    218
  • trunk/Source/WebCore/rendering/RenderView.cpp

    r232991 r236288  
    249249LayoutUnit RenderView::pageOrViewLogicalHeight() const
    250250{
    251     if (document().printing())
     251    if (shouldUsePrintingLayout())
    252252        return m_pageLogicalSize->height();
    253253   
Note: See TracChangeset for help on using the changeset viewer.