Changeset 170805 in webkit


Ignore:
Timestamp:
Jul 4, 2014, 6:55:55 AM (10 years ago)
Author:
Antti Koivisto
Message:

REGRESSION(r159345): Lines are clipped between pages when printing web content from Safari
https://bugs.webkit.org/show_bug.cgi?id=134633

Source/WebCore:
<rdar://problem/17088936>

Reviewed by Zalan Bujtas.

Test: printing/simple-lines-break.html

  • rendering/SimpleLineLayout.cpp:

(WebCore::SimpleLineLayout::canUseFor):

Disable simple lines if global pagination is enabled.
Printing does not currently use flow threads which we already test for.

LayoutTests:

Reviewed by Zalan Bujtas.

  • printing/simple-lines-break-expected.html: Added.
  • printing/simple-lines-break.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r170765 r170805  
     12014-07-04  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION(r159345): Lines are clipped between pages when printing web content from Safari
     4        https://bugs.webkit.org/show_bug.cgi?id=134633
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        * printing/simple-lines-break-expected.html: Added.
     9        * printing/simple-lines-break.html: Added.
     10
    1112014-07-02  Brent Fulgham  <bfulgham@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r170799 r170805  
     12014-07-04  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION(r159345): Lines are clipped between pages when printing web content from Safari
     4        https://bugs.webkit.org/show_bug.cgi?id=134633
     5        <rdar://problem/17088936>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        Test: printing/simple-lines-break.html
     10
     11        * rendering/SimpleLineLayout.cpp:
     12        (WebCore::SimpleLineLayout::canUseFor):
     13       
     14            Disable simple lines if global pagination is enabled.
     15            Printing does not currently use flow threads which we already test for.
     16
    1172014-07-04  Zan Dobersek  <zdobersek@igalia.com>
    218
  • trunk/Source/WebCore/rendering/SimpleLineLayout.cpp

    r168598 r170805  
    104104    if (flow.flowThreadState() != RenderObject::NotInsideFlowThread)
    105105        return false;
     106    // Printing does pagination without a flow thread.
     107    if (flow.document().paginated())
     108        return false;
    106109    if (flow.hasOutline())
    107110        return false;
Note: See TracChangeset for help on using the changeset viewer.