Changeset 93384 in webkit


Ignore:
Timestamp:
Aug 18, 2011, 8:34:36 PM (14 years ago)
Author:
mitz@apple.com
Message:

Mid-word break can occur between a character and a combining mark
https://bugs.webkit.org/show_bug.cgi?id=66529

Reviewed by Simon Fraser.

No test added because I could not find a combining mark with a non-zero advance in
any of the system fonts and tests fonts.

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::RenderBlock::LineBreaker::nextLineBreak): Disallow a mid-word break before a
combining mark.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r93382 r93384  
     12011-08-18  Dan Bernstein  <mitz@apple.com>
     2
     3        Mid-word break can occur between a character and a combining mark
     4        https://bugs.webkit.org/show_bug.cgi?id=66529
     5
     6        Reviewed by Simon Fraser.
     7
     8        No test added because I could not find a combining mark with a non-zero advance in
     9        any of the system fonts and tests fonts.
     10
     11        * rendering/RenderBlockLineLayout.cpp:
     12        (WebCore::RenderBlock::LineBreaker::nextLineBreak): Disallow a mid-word break before a
     13        combining mark.
     14
    1152011-08-18  Kent Tamura  <tkent@chromium.org>
    216
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r93237 r93384  
    23002300                    }
    23012301
    2302                     if (midWordBreak && !U16_IS_TRAIL(c)) {
     2302                    if (midWordBreak && !U16_IS_TRAIL(c) && !(U_GET_GC_MASK(c) & U_GC_M_MASK)) {
    23032303                        // Remember this as a breakable position in case
    23042304                        // adding the end width forces a break.
Note: See TracChangeset for help on using the changeset viewer.