Changeset 76414 in webkit


Ignore:
Timestamp:
Jan 21, 2011, 5:31:05 PM (14 years ago)
Author:
mitz@apple.com
Message:

Inconsistent handling of no-break space in justification logic
https://bugs.webkit.org/show_bug.cgi?id=52938

Reviewed by Adele Peterson.

Source/WebCore:

Test: fast/text/justify-nbsp.html

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::RenderBlock::computeInlineDirectionPositionsForLine): Count no-break space as a
space when computing the distribution of space between text boxes on the line.

LayoutTests:

  • fast/text/justify-nbsp-expected.checksum: Added.
  • fast/text/justify-nbsp-expected.png: Added.
  • fast/text/justify-nbsp-expected.txt: Added.
  • fast/text/justify-nbsp.html: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r76410 r76414  
     12011-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
    1132011-01-21  Kenji Imasaki  <imasaki@chromium.org>
    214
  • trunk/Source/WebCore/ChangeLog

    r76406 r76414  
     12011-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
    1142011-01-21  Charlie Reis  <creis@chromium.org>
    215
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r76170 r76414  
    326326                for (int i = r->m_start; i < r->m_stop; i++) {
    327327                    UChar c = characters[i];
    328                     if (c == ' ' || c == '\n' || c == '\t')
     328                    if (Font::treatAsSpace(c))
    329329                        numSpaces++;
    330330                }
     
    448448                for (int i = r->m_start; i < r->m_stop; i++) {
    449449                    UChar c = characters[i];
    450                     if (c == ' ' || c == '\n' || c == '\t')
     450                    if (Font::treatAsSpace(c))
    451451                        spaces++;
    452452                }
Note: See TracChangeset for help on using the changeset viewer.