Changeset 198858 in webkit
- Timestamp:
- Mar 30, 2016 3:06:38 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r198857 r198858 1 2016-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 1 12 2016-03-30 Eric Carlson <eric.carlson@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r198854 r198858 1 2016-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 1 14 2016-03-30 Alex Christensen <achristensen@webkit.org> 2 15 -
trunk/Source/WebCore/style/InlineTextBoxStyle.cpp
r194775 r198858 47 47 // vertical text, since we already determined the baseline type to be ideographic in that 48 48 // 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 } 50 57 51 58 switch (resolvedUnderlinePosition) {
Note: See TracChangeset
for help on using the changeset viewer.