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

Changeset 236510 in webkit


Ignore:
Timestamp:
Sep 26, 2018, 11:20:09 AM (8 years ago)
Author:
bshafiei@apple.com
Message:

Cherry-pick r236288. rdar://problem/43659749

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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236288 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
tags/Safari-607.1.7.3
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • tags/Safari-607.1.7.3/LayoutTests/ChangeLog

    r236166 r236510  
     12018-09-26  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Cherry-pick r236288. rdar://problem/43659749
     4
     5    Release assert under RenderView::pageOrViewLogicalHeight
     6    https://bugs.webkit.org/show_bug.cgi?id=189798
     7    <rdar://problem/43659749>
     8   
     9    Reviewed by Simon Fraser.
     10   
     11    Source/WebCore:
     12   
     13    Only the mainframe's render view is sized to the page while printing.
     14    Use the matching check (see RenderView::layout) when accessing m_pageLogicalSize.
     15   
     16    Test: printing/crash-while-formatting-subframe-for-printing.html
     17   
     18    * rendering/RenderView.cpp:
     19    (WebCore::RenderView::pageOrViewLogicalHeight const):
     20   
     21    LayoutTests:
     22   
     23    * printing/crash-while-formatting-subframe-for-printing-expected.txt: Added.
     24    * printing/crash-while-formatting-subframe-for-printing.html: Added.
     25   
     26   
     27    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236288 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     28
     29    2018-09-20  Zalan Bujtas  <zalan@apple.com>
     30
     31            Release assert under RenderView::pageOrViewLogicalHeight
     32            https://bugs.webkit.org/show_bug.cgi?id=189798
     33            <rdar://problem/43659749>
     34
     35            Reviewed by Simon Fraser.
     36
     37            * printing/crash-while-formatting-subframe-for-printing-expected.txt: Added.
     38            * printing/crash-while-formatting-subframe-for-printing.html: Added.
     39
    1402018-09-19  Ms2ger  <Ms2ger@igalia.com>
    241
  • tags/Safari-607.1.7.3/Source/WebCore/ChangeLog

    r236509 r236510  
     12018-09-26  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Cherry-pick r236288. rdar://problem/43659749
     4
     5    Release assert under RenderView::pageOrViewLogicalHeight
     6    https://bugs.webkit.org/show_bug.cgi?id=189798
     7    <rdar://problem/43659749>
     8   
     9    Reviewed by Simon Fraser.
     10   
     11    Source/WebCore:
     12   
     13    Only the mainframe's render view is sized to the page while printing.
     14    Use the matching check (see RenderView::layout) when accessing m_pageLogicalSize.
     15   
     16    Test: printing/crash-while-formatting-subframe-for-printing.html
     17   
     18    * rendering/RenderView.cpp:
     19    (WebCore::RenderView::pageOrViewLogicalHeight const):
     20   
     21    LayoutTests:
     22   
     23    * printing/crash-while-formatting-subframe-for-printing-expected.txt: Added.
     24    * printing/crash-while-formatting-subframe-for-printing.html: Added.
     25   
     26   
     27    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236288 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     28
     29    2018-09-20  Zalan Bujtas  <zalan@apple.com>
     30
     31            Release assert under RenderView::pageOrViewLogicalHeight
     32            https://bugs.webkit.org/show_bug.cgi?id=189798
     33            <rdar://problem/43659749>
     34
     35            Reviewed by Simon Fraser.
     36
     37            Only the mainframe's render view is sized to the page while printing.
     38            Use the matching check (see RenderView::layout) when accessing m_pageLogicalSize.
     39
     40            Test: printing/crash-while-formatting-subframe-for-printing.html
     41
     42            * rendering/RenderView.cpp:
     43            (WebCore::RenderView::pageOrViewLogicalHeight const):
     44
    1452018-09-26  Babak Shafiei  <bshafiei@apple.com>
    246
  • tags/Safari-607.1.7.3/Source/WebCore/rendering/RenderView.cpp

    r232991 r236510  
    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.