Changeset 76414 in webkit
- Timestamp:
- Jan 21, 2011, 5:31:05 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r76410 r76414 1 2011-01-21 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Adele Peterson. 4 5 Inconsistent handling of no-break space in justification logic 6 https://bugs.webkit.org/show_bug.cgi?id=52938 7 8 * fast/text/justify-nbsp-expected.checksum: Added. 9 * fast/text/justify-nbsp-expected.png: Added. 10 * fast/text/justify-nbsp-expected.txt: Added. 11 * fast/text/justify-nbsp.html: Added. 12 1 13 2011-01-21 Kenji Imasaki <imasaki@chromium.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r76406 r76414 1 2011-01-21 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Adele Peterson. 4 5 Inconsistent handling of no-break space in justification logic 6 https://bugs.webkit.org/show_bug.cgi?id=52938 7 8 Test: fast/text/justify-nbsp.html 9 10 * rendering/RenderBlockLineLayout.cpp: 11 (WebCore::RenderBlock::computeInlineDirectionPositionsForLine): Count no-break space as a 12 space when computing the distribution of space between text boxes on the line. 13 1 14 2011-01-21 Charlie Reis <creis@chromium.org> 2 15 -
trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp
r76170 r76414 326 326 for (int i = r->m_start; i < r->m_stop; i++) { 327 327 UChar c = characters[i]; 328 if ( c == ' ' || c == '\n' || c == '\t')328 if (Font::treatAsSpace(c)) 329 329 numSpaces++; 330 330 } … … 448 448 for (int i = r->m_start; i < r->m_stop; i++) { 449 449 UChar c = characters[i]; 450 if ( c == ' ' || c == '\n' || c == '\t')450 if (Font::treatAsSpace(c)) 451 451 spaces++; 452 452 }
Note:
See TracChangeset
for help on using the changeset viewer.