Changeset 89322 in webkit


Ignore:
Timestamp:
Jun 20, 2011 5:57:31 PM (13 years ago)
Author:
ap@apple.com
Message:

2011-06-20 Alexey Proskuryakov <ap@apple.com>

Reviewed by Darin Adler.

startWordBoundary() in visible_units.cpp assumes that all characters are 16 bit
https://bugs.webkit.org/show_bug.cgi?id=63027

No new tests, because I don't see this affect any webkit.org ports.

  • editing/visible_units.cpp: (WebCore::startWordBoundary): Previous offset is not just minus one - we need to use a proper macro to iterate.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r89321 r89322  
     12011-06-20  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        startWordBoundary() in visible_units.cpp assumes that all characters are 16 bit
     6        https://bugs.webkit.org/show_bug.cgi?id=63027
     7
     8        No new tests, because I don't see this affect any webkit.org ports.
     9
     10        * editing/visible_units.cpp: (WebCore::startWordBoundary): Previous offset is not just minus
     11        one - we need to use a proper macro to iterate.
     12
    1132011-06-20  Jay Civelli  <jcivelli@chromium.org>
    214
  • trunk/Source/WebCore/editing/visible_units.cpp

    r89091 r89322  
    233233    needMoreContext = false;
    234234    int start, end;
    235     findWordBoundary(characters, length, offset - 1, &start, &end);
     235    U16_BACK_1(characters, 0, offset);
     236    findWordBoundary(characters, length, offset, &start, &end);
    236237    return start;
    237238}
Note: See TracChangeset for help on using the changeset viewer.