Changeset 128692 in webkit
- Timestamp:
- Sep 15, 2012, 12:20:13 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r128691 r128692 1 2012-09-15 Dan Bernstein <mitz@apple.com> 2 3 REGRESSION (r125578): Word spacing not applied to newline and tab characters that are treated as spaces 4 https://bugs.webkit.org/show_bug.cgi?id=96865 5 6 Reviewed by Sam Weinig. 7 8 * fast/text/atsui-negative-spacing-features.html: Reverted changes made in r128691, now that 9 both code paths handle newlines correctly. 10 * fast/text/atsui-spacing-features.html: Ditto. 11 * platform/mac/TestExpectations: Removed fast/css/word-space-extra.html. 12 1 13 2012-09-15 Dan Bernstein <mitz@apple.com> 2 14 -
trunk/LayoutTests/fast/text/atsui-negative-spacing-features.html
r128691 r128692 27 27 <div class="word"> 28 28 <div class="test rtl"> 29 יְהִי, אָחִי, לְךָ סֵפֶר שְׁלַחְתִּיו וּמִמְכֶּרֶת צְמִיתוּת לָךְ מְכַרְתִּיו.</div> 29 יְהִי, 30 אָחִי, 31 לְךָ 32 סֵפֶר 33 שְׁלַחְתִּיו 34 וּמִמְכֶּרֶת 35 צְמִיתוּת 36 לָךְ 37 מְכַרְתִּיו. 38 </div> 30 39 <div class="test"> 31 40 Lorèm ipsum dolor sit amèt, consectetuer adipiscing èlit. -
trunk/LayoutTests/fast/text/atsui-spacing-features.html
r128691 r128692 29 29 <div class="word"> 30 30 <div class="test rtl"> 31 יְהִי, אָחִי, לְךָ סֵפֶר שְׁלַחְתִּיו וּמִמְכֶּרֶת צְמִיתוּת לָךְ מְכַרְתִּיו.</div> 31 יְהִי, 32 אָחִי, 33 לְךָ 34 סֵפֶר 35 שְׁלַחְתִּיו 36 וּמִמְכֶּרֶת 37 צְמִיתוּת 38 לָךְ 39 מְכַרְתִּיו. 40 </div> 32 41 <div class="test"> 33 42 Lorèm ipsum dolor sit amèt, consectetuer adipiscing èlit. -
trunk/LayoutTests/platform/mac/TestExpectations
r128691 r128692 318 318 BUGWK93636 : http/tests/images/jpg-img-partial-load.html = TEXT 319 319 320 // Require rebaselining after https://bugs.webkit.org/show_bug.cgi?id=89826321 BUGWK89826 : fast/css/word-space-extra.html = TEXT322 323 320 // Added by bug 89826 324 321 BUGWK94008 : fast/css/word-spacing-characters.html = IMAGE -
trunk/Source/WebCore/ChangeLog
r128691 r128692 1 2012-09-15 Dan Bernstein <mitz@apple.com> 2 3 REGRESSION (r125578): Word spacing not applied to newline and tab characters that are treated as spaces 4 https://bugs.webkit.org/show_bug.cgi?id=96865 5 6 Reviewed by Sam Weinig. 7 8 Fixes fast/css/word-space-extra.html. 9 10 * platform/graphics/WidthIterator.cpp: 11 (WebCore::WidthIterator::advanceInternal): Changed back to apply word spacing to all characters 12 that are treated as spaces, except for tab characters when there are tab stops. 13 * platform/graphics/mac/ComplexTextController.cpp: 14 (WebCore::ComplexTextController::adjustGlyphsAndAdvances): Ditto. 15 1 16 2012-09-15 Dan Bernstein <mitz@apple.com> 2 17 -
trunk/Source/WebCore/platform/graphics/WidthIterator.cpp
r128504 r128692 182 182 // Account for word spacing. 183 183 // We apply additional space between "words" by adding width to the space character. 184 // Word-spacing affects each space (U+0020) and non-breaking space (U+00A0). 185 if ((character == noBreakSpace || character == ' ') && textIterator.currentCharacter() && m_font->wordSpacing()) 184 if (treatAsSpace && (character != '\t' || !m_run.allowTabs()) && textIterator.currentCharacter() && m_font->wordSpacing()) 186 185 width += m_font->wordSpacing(); 187 186 } else -
trunk/Source/WebCore/platform/graphics/mac/ComplexTextController.cpp
r128691 r128692 636 636 637 637 // Account for word-spacing. 638 if ( (ch == noBreakSpace || ch == ' ') && (characterIndex > 0 || r > 0) && m_font.wordSpacing())638 if (treatAsSpace && (ch != '\t' || !m_run.allowTabs()) && (characterIndex > 0 || r > 0) && m_font.wordSpacing()) 639 639 advance.width += m_font.wordSpacing(); 640 640 } else
Note:
See TracChangeset
for help on using the changeset viewer.