Changeset 74326 in webkit


Ignore:
Timestamp:
Dec 19, 2010 1:29:35 PM (13 years ago)
Author:
mitz@apple.com
Message:

Text emphasis marks are not repainted correctly in flipped writing modes
https://bugs.webkit.org/show_bug.cgi?id=51307

Reviewed by Cameron Zwarich.

WebCore:

Tests: fast/repaint/text-emphasis-h.html

fast/repaint/text-emphasis-v.html

  • rendering/InlineFlowBox.cpp:

(WebCore::InlineFlowBox::addTextBoxVisualOverflow): Added flippedness check.

LayoutTests:

  • fast/repaint/text-emphasis-h-expected.checksum: Added.
  • fast/repaint/text-emphasis-h-expected.png: Added.
  • fast/repaint/text-emphasis-h-expected.txt: Added.
  • fast/repaint/text-emphasis-h.html: Added.
  • fast/repaint/text-emphasis-v-expected.checksum: Added.
  • fast/repaint/text-emphasis-v-expected.png: Added.
  • fast/repaint/text-emphasis-v-expected.txt: Added.
  • fast/repaint/text-emphasis-v.html: Added.
Location:
trunk
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r74321 r74326  
     12010-12-19  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Cameron Zwarich.
     4
     5        Text emphasis marks are not repainted correctly in flipped writing modes
     6        https://bugs.webkit.org/show_bug.cgi?id=51307
     7
     8        * fast/repaint/text-emphasis-h-expected.checksum: Added.
     9        * fast/repaint/text-emphasis-h-expected.png: Added.
     10        * fast/repaint/text-emphasis-h-expected.txt: Added.
     11        * fast/repaint/text-emphasis-h.html: Added.
     12        * fast/repaint/text-emphasis-v-expected.checksum: Added.
     13        * fast/repaint/text-emphasis-v-expected.png: Added.
     14        * fast/repaint/text-emphasis-v-expected.txt: Added.
     15        * fast/repaint/text-emphasis-v.html: Added.
     16
    1172010-12-18  Tom Sepez  <tsepez@chromium.org>
    218
  • trunk/WebCore/ChangeLog

    r74325 r74326  
     12010-12-19  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Cameron Zwarich.
     4
     5        Text emphasis marks are not repainted correctly in flipped writing modes
     6        https://bugs.webkit.org/show_bug.cgi?id=51307
     7
     8        Tests: fast/repaint/text-emphasis-h.html
     9               fast/repaint/text-emphasis-v.html
     10
     11        * rendering/InlineFlowBox.cpp:
     12        (WebCore::InlineFlowBox::addTextBoxVisualOverflow): Added flippedness check.
     13
    1142010-12-19  Rob Buis  <rwlbuis@gmail.com>
    215
  • trunk/WebCore/rendering/InlineFlowBox.cpp

    r74281 r74326  
    748748    if (style->textEmphasisMark() != TextEmphasisMarkNone) {
    749749        int emphasisMarkHeight = style->font().emphasisMarkHeight(style->textEmphasisMarkString());
    750         if (style->textEmphasisPosition() == TextEmphasisPositionOver)
     750        if ((style->textEmphasisPosition() == TextEmphasisPositionOver) == (!style->isFlippedLinesWritingMode()))
    751751            topGlyphOverflow = min(topGlyphOverflow, -emphasisMarkHeight);
    752752        else
Note: See TracChangeset for help on using the changeset viewer.