Changeset 97794 in webkit


Ignore:
Timestamp:
Oct 18, 2011, 3:14:00 PM (14 years ago)
Author:
mitz@apple.com
Message:

Certain column-rule styles render incorrectly in vertical writing modes
https://bugs.webkit.org/show_bug.cgi?id=70362

Reviewed by Darin Adler.

Source/WebCore:

Test: fast/multicol/vertical-rl/rule-style.html

  • rendering/RenderBlock.cpp:

(WebCore::RenderBlock::paintColumnRules): Use the correct border sides for vertical writing modes.

LayoutTests:

  • fast/multicol/vertical-rl/rule-style-expected.png: Added.
  • fast/multicol/vertical-rl/rule-style-expected.txt: Added.
  • fast/multicol/vertical-rl/rule-style.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r97791 r97794  
     12011-10-18  Dan Bernstein  <mitz@apple.com>
     2
     3        Certain column-rule styles render incorrectly in vertical writing modes
     4        https://bugs.webkit.org/show_bug.cgi?id=70362
     5
     6        Reviewed by Darin Adler.
     7
     8        * fast/multicol/vertical-rl/rule-style-expected.png: Added.
     9        * fast/multicol/vertical-rl/rule-style-expected.txt: Added.
     10        * fast/multicol/vertical-rl/rule-style.html: Added.
     11
    1122011-10-18  Gavin Barraclough  <barraclough@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r97793 r97794  
     12011-10-18  Dan Bernstein  <mitz@apple.com>
     2
     3        Certain column-rule styles render incorrectly in vertical writing modes
     4        https://bugs.webkit.org/show_bug.cgi?id=70362
     5
     6        Reviewed by Darin Adler.
     7
     8        Test: fast/multicol/vertical-rl/rule-style.html
     9
     10        * rendering/RenderBlock.cpp:
     11        (WebCore::RenderBlock::paintColumnRules): Use the correct border sides for vertical writing modes.
     12
    1132011-10-18  Anna Cavender  <annacc@chromium.org>
    214
  • trunk/Source/WebCore/rendering/RenderBlock.cpp

    r97786 r97794  
    24172417            LayoutUnit ruleTop = isHorizontalWritingMode() ? paintOffset.y() + borderTop() + paddingTop() : paintOffset.y() + ruleLogicalLeft - ruleWidth / 2 + ruleAdd;
    24182418            LayoutUnit ruleBottom = isHorizontalWritingMode() ? ruleTop + contentHeight() : ruleTop + ruleWidth;
    2419             drawLineForBoxSide(paintInfo.context, ruleLeft, ruleTop, ruleRight, ruleBottom,
    2420                                style()->isLeftToRightDirection() ? BSLeft : BSRight, ruleColor, ruleStyle, 0, 0, antialias);
     2419            BoxSide side = isHorizontalWritingMode()
     2420                ? style()->isLeftToRightDirection() ? BSLeft : BSRight
     2421                : style()->isLeftToRightDirection() ? BSTop : BSBottom;
     2422            drawLineForBoxSide(paintInfo.context, ruleLeft, ruleTop, ruleRight, ruleBottom, side, ruleColor, ruleStyle, 0, 0, antialias);
    24212423        }
    24222424       
Note: See TracChangeset for help on using the changeset viewer.