Changeset 128965 in webkit


Ignore:
Timestamp:
Sep 18, 2012 10:26:16 PM (12 years ago)
Author:
bashi@chromium.org
Message:

[Chromium] Don't treat tab as spaces for word-end in HarfBuzzShaper
https://bugs.webkit.org/show_bug.cgi?id=97068

Reviewed by Yuta Kitamura.

No new tests. fast/text/wide-zero-width-space.html should cover this change.

  • platform/graphics/harfbuzz/ng/HarfBuzzShaper.cpp:

(WebCore::normalizeCharacters): Don't treat tab as space.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r128964 r128965  
     12012-09-18  Kenichi Ishibashi  <bashi@chromium.org>
     2
     3        [Chromium] Don't treat tab as spaces for word-end in HarfBuzzShaper
     4        https://bugs.webkit.org/show_bug.cgi?id=97068
     5
     6        Reviewed by Yuta Kitamura.
     7
     8        No new tests. fast/text/wide-zero-width-space.html should cover this change.
     9
     10        * platform/graphics/harfbuzz/ng/HarfBuzzShaper.cpp:
     11        (WebCore::normalizeCharacters): Don't treat tab as space.
     12
    1132012-09-18  Eric Carlson  <eric.carlson@apple.com>
    214
  • trunk/Source/WebCore/platform/graphics/harfbuzz/ng/HarfBuzzShaper.cpp

    r127801 r128965  
    156156        int nextPosition = position;
    157157        U16_NEXT(source, nextPosition, length, character);
    158         if (Font::treatAsSpace(character))
     158        // Don't normalize tabs as they are not treated as spaces for word-end
     159        if (Font::treatAsSpace(character) && character != '\t')
    159160            character = ' ';
    160161        else if (Font::treatAsZeroWidthSpaceInComplexScript(character))
Note: See TracChangeset for help on using the changeset viewer.