Changeset 136765 in webkit


Ignore:
Timestamp:
Dec 5, 2012, 3:07:31 PM (13 years ago)
Author:
mitz@apple.com
Message:

Text decorations are rotated when text-combine takes effect
https://bugs.webkit.org/show_bug.cgi?id=104172

Reviewed by Dave Hyatt.

Source/WebCore:

Test: fast/text/decorations-with-text-combine.html

  • rendering/InlineTextBox.cpp:

(WebCore::InlineTextBox::paint): Applied a rotation to the graphics context when painting
the text decorations for combined text.

LayoutTests:

  • fast/text/decorations-with-text-combine.html: Added.
  • platform/chromium/TestExpectations: Added to tests missing platform-specific results.
  • platform/mac/fast/text/decorations-with-text-combine-expected.png: Added.
  • platform/mac/fast/text/decorations-with-text-combine-expected.txt: Added.
Location:
trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/LayoutTests/ChangeLog

    r136758 r136765  
     12012-12-05  Dan Bernstein  <mitz@apple.com>
     2
     3        Text decorations are rotated when text-combine takes effect
     4        https://bugs.webkit.org/show_bug.cgi?id=104172
     5
     6        Reviewed by Dave Hyatt.
     7
     8        * fast/text/decorations-with-text-combine.html: Added.
     9        * platform/chromium/TestExpectations: Added to tests missing platform-specific results.
     10        * platform/mac/fast/text/decorations-with-text-combine-expected.png: Added.
     11        * platform/mac/fast/text/decorations-with-text-combine-expected.txt: Added.
     12
    1132012-12-05  Tony Chang  <tony@chromium.org>
    214
  • TabularUnified trunk/LayoutTests/platform/chromium/TestExpectations

    r136755 r136765  
    42554255# Needs platform-specific results
    42564256webkit.org/b/104035 fast/text/orientation-sideways.html [ Missing ]
     4257webkit.org/b/104172 fast/text/decorations-with-text-combine.html [ Missing ]
    42574258
    42584259# Crash since r136588.
  • TabularUnified trunk/Source/WebCore/ChangeLog

    r136755 r136765  
     12012-12-05  Dan Bernstein  <mitz@apple.com>
     2
     3        Text decorations are rotated when text-combine takes effect
     4        https://bugs.webkit.org/show_bug.cgi?id=104172
     5
     6        Reviewed by Dave Hyatt.
     7
     8        Test: fast/text/decorations-with-text-combine.html
     9
     10        * rendering/InlineTextBox.cpp:
     11        (WebCore::InlineTextBox::paint): Applied a rotation to the graphics context when painting
     12        the text decorations for combined text.
     13
    1142012-12-05  Justin Novosad  <junov@google.com>
    215
  • TabularUnified trunk/Source/WebCore/rendering/InlineTextBox.cpp

    r133731 r136765  
    770770    if (textDecorations != TDNONE && paintInfo.phase != PaintPhaseSelection) {
    771771        updateGraphicsContext(context, textFillColor, textStrokeColor, textStrokeWidth, styleToUse->colorSpace());
     772        if (combinedText)
     773            context->concatCTM(rotation(boxRect, Clockwise));
    772774        paintDecoration(context, boxOrigin, textDecorations, styleToUse->textDecorationStyle(), textShadow);
     775        if (combinedText)
     776            context->concatCTM(rotation(boxRect, Counterclockwise));
    773777    }
    774778
Note: See TracChangeset for help on using the changeset viewer.