Changeset 198858 in webkit


Ignore:
Timestamp:
Mar 30, 2016 3:06:38 PM (8 years ago)
Author:
weinig@apple.com
Message:

-webkit-text-underline-position: under; does not work in ToT
https://bugs.webkit.org/show_bug.cgi?id=156038

Reviewed by David Hyatt.

Source/WebCore:

Test: fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-under-vs-alphabetic.html

  • style/InlineTextBoxStyle.cpp:

(WebCore::computeUnderlineOffset):
Only resolve the underline position when based on the InlineTextBox when it is specified as auto.

LayoutTests:

  • fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-under-vs-alphabetic-expected-mismatch.html: Added.
  • fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-under-vs-alphabetic.html: Added.

Add mismatch test to show that -webkit-text-underline-position: under works.

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r198857 r198858  
     12016-03-30  Sam Weinig  <sam@webkit.org>
     2
     3        -webkit-text-underline-position: under; does not work in ToT
     4        https://bugs.webkit.org/show_bug.cgi?id=156038
     5
     6        Reviewed by David Hyatt.
     7
     8        * fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-under-vs-alphabetic-expected-mismatch.html: Added.
     9        * fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-under-vs-alphabetic.html: Added.
     10        Add mismatch test to show that -webkit-text-underline-position: under works.
     11
    1122016-03-30  Eric Carlson  <eric.carlson@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r198854 r198858  
     12016-03-30  Sam Weinig  <sam@webkit.org>
     2
     3        -webkit-text-underline-position: under; does not work in ToT
     4        https://bugs.webkit.org/show_bug.cgi?id=156038
     5
     6        Reviewed by David Hyatt.
     7
     8        Test: fast/css3-text/css3-text-decoration/text-underline-position/text-underline-position-under-vs-alphabetic.html
     9
     10        * style/InlineTextBoxStyle.cpp:
     11        (WebCore::computeUnderlineOffset):
     12        Only resolve the underline position when based on the InlineTextBox when it is specified as auto.
     13
    1142016-03-30  Alex Christensen  <achristensen@webkit.org>
    215
  • trunk/Source/WebCore/style/InlineTextBoxStyle.cpp

    r194775 r198858  
    4747    // vertical text, since we already determined the baseline type to be ideographic in that
    4848    // case.
    49     TextUnderlinePosition resolvedUnderlinePosition = underlinePosition == TextUnderlinePositionAuto && inlineTextBox && inlineTextBox->root().baselineType() == IdeographicBaseline ? TextUnderlinePositionUnder : TextUnderlinePositionAlphabetic;
     49   
     50    TextUnderlinePosition resolvedUnderlinePosition = underlinePosition;
     51    if (resolvedUnderlinePosition == TextUnderlinePositionAuto) {
     52        if (inlineTextBox)
     53            resolvedUnderlinePosition = inlineTextBox->root().baselineType() == IdeographicBaseline ? TextUnderlinePositionUnder : TextUnderlinePositionAlphabetic;
     54        else
     55            resolvedUnderlinePosition = TextUnderlinePositionAlphabetic;
     56    }
    5057   
    5158    switch (resolvedUnderlinePosition) {
Note: See TracChangeset for help on using the changeset viewer.