Changeset 175617 in webkit


Ignore:
Timestamp:
Nov 5, 2014 2:12:42 AM (9 years ago)
Author:
akling@apple.com
Message:

Simple line layout: support text-transform: lowercase|uppercase|capitalize
<https://webkit.org/b/138406>

Reviewed by Antti Koivisto.

Source/WebCore:

Expand the simple line layout coverage to include all text-transform values.
Since the property works on the text string level, it's really only a matter
of removing the short-circuit.

Test: fast/text/simple-lines-text-transform.html

  • rendering/SimpleLineLayout.cpp:

(WebCore::SimpleLineLayout::canUseFor):

LayoutTests:

Add ref test for simple line layout with all text-transform values.

  • fast/text/simple-lines-text-transform-expected.html: Added.
  • fast/text/simple-lines-text-transform.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r175586 r175617  
     12014-11-05  Andreas Kling  <akling@apple.com>
     2
     3        Simple line layout: support text-transform: lowercase|uppercase|capitalize
     4        <https://webkit.org/b/138406>
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Add ref test for simple line layout with all text-transform values.
     9
     10        * fast/text/simple-lines-text-transform-expected.html: Added.
     11        * fast/text/simple-lines-text-transform.html: Added.
     12
    1132014-11-04  Michael Saboff  <msaboff@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r175615 r175617  
     12014-11-05  Andreas Kling  <akling@apple.com>
     2
     3        Simple line layout: support text-transform: lowercase|uppercase|capitalize
     4        <https://webkit.org/b/138406>
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Expand the simple line layout coverage to include all text-transform values.
     9        Since the property works on the text string level, it's really only a matter
     10        of removing the short-circuit.
     11
     12        Test: fast/text/simple-lines-text-transform.html
     13
     14        * rendering/SimpleLineLayout.cpp:
     15        (WebCore::SimpleLineLayout::canUseFor):
     16
    1172014-11-05  Jer Noble  <jer.noble@apple.com>
    218
  • trunk/Source/WebCore/rendering/SimpleLineLayout.cpp

    r175601 r175617  
    130130        return false;
    131131    if (!style.wordSpacing().isZero() || style.letterSpacing())
    132         return false;
    133     if (style.textTransform() != TTNONE)
    134132        return false;
    135133    if (!style.isLeftToRightDirection())
Note: See TracChangeset for help on using the changeset viewer.