Changeset 123835 in webkit


Ignore:
Timestamp:
Jul 26, 2012 8:48:18 PM (12 years ago)
Author:
mitz@apple.com
Message:

Blocks with reverse column progression don’t have layout overflow for overflowing columns
https://bugs.webkit.org/show_bug.cgi?id=92440

Reviewed by Sam Weinig.

Source/WebCore:

Test: fast/multicol/progression-reverse-overflow.html

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::addLayoutOverflow): If column progression is reversed, then allow
layout overflow to go in the opposite direction than it would normally be allowed to go.
For example, in a block with writing-mode: horizontal-tb, direction: ltr and
column-progression: reverse, columns overflow to the left, so layout overflow would go on
the left.

LayoutTests:

  • fast/multicol/progression-reverse-overflow-expected.html: Added.
  • fast/multicol/progression-reverse-overflow.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r123827 r123835  
     12012-07-26  Dan Bernstein  <mitz@apple.com>
     2
     3        Blocks with reverse column progression don’t have layout overflow for overflowing columns
     4        https://bugs.webkit.org/show_bug.cgi?id=92440
     5
     6        Reviewed by Sam Weinig.
     7
     8        * fast/multicol/progression-reverse-overflow-expected.html: Added.
     9        * fast/multicol/progression-reverse-overflow.html: Added.
     10
    1112012-07-26  Sukolsak Sakshuwong  <sukolsak@google.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r123833 r123835  
     12012-07-26  Dan Bernstein  <mitz@apple.com>
     2
     3        Blocks with reverse column progression don’t have layout overflow for overflowing columns
     4        https://bugs.webkit.org/show_bug.cgi?id=92440
     5
     6        Reviewed by Sam Weinig.
     7
     8        Test: fast/multicol/progression-reverse-overflow.html
     9
     10        * rendering/RenderBox.cpp:
     11        (WebCore::RenderBox::addLayoutOverflow): If column progression is reversed, then allow
     12        layout overflow to go in the opposite direction than it would normally be allowed to go.
     13        For example, in a block with writing-mode: horizontal-tb, direction: ltr and
     14        column-progression: reverse, columns overflow to the left, so layout overflow would go on
     15        the left.
     16
    1172012-07-26  Keishi Hattori  <keishi@webkit.org>
    218
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r123754 r123835  
    36353635                hasTopOverflow = true;
    36363636        }
    3637        
     3637
     3638        if (hasColumns() && style()->columnProgression() == ReverseColumnProgression) {
     3639            if (isHorizontalWritingMode() ^ !style()->hasInlineColumnAxis())
     3640                hasLeftOverflow = !hasLeftOverflow;
     3641            else
     3642                hasTopOverflow = !hasTopOverflow;
     3643        }
     3644
    36383645        if (!hasTopOverflow)
    36393646            overflowRect.shiftYEdgeTo(max(overflowRect.y(), clientBox.y()));
Note: See TracChangeset for help on using the changeset viewer.