Changeset 66740 in webkit


Ignore:
Timestamp:
Sep 3, 2010 10:56:36 AM (14 years ago)
Author:
mitz@apple.com
Message:

2010-09-03 Dan Bernstein <mitz@apple.com>

Reviewed by Anders Carlsson.

<rdar://problem/8392655> REGRESSION (r57215): Decomposed diacritics render incorrectly when preceded by stacked diacritics
https://bugs.webkit.org/show_bug.cgi?id=45182

Test: fast/text/decomposed-after-stacked-diacritics.html

  • platform/graphics/Font.cpp: (WebCore::Font::codePath): Do not bail out if the run contains stacked diacritics, since it may also contain characters that require the complex text code path.

2010-09-03 Dan Bernstein <mitz@apple.com>

Reviewed by Anders Carlsson.

<rdar://problem/8392655> REGRESSION (r57215): Decomposed diacritics render incorrectly when preceded by stacked diacritics
https://bugs.webkit.org/show_bug.cgi?id=45182

  • fast/text/decomposed-after-stacked-diacritics-expected.txt: Added.
  • fast/text/decomposed-after-stacked-diacritics.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r66737 r66740  
     12010-09-03  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Anders Carlsson.
     4
     5        <rdar://problem/8392655> REGRESSION (r57215): Decomposed diacritics render incorrectly when preceded by stacked diacritics
     6        https://bugs.webkit.org/show_bug.cgi?id=45182
     7
     8        * fast/text/decomposed-after-stacked-diacritics-expected.txt: Added.
     9        * fast/text/decomposed-after-stacked-diacritics.html: Added.
     10
    1112010-09-03  Mihai Parparita  <mihaip@chromium.org>
    212
  • trunk/WebCore/ChangeLog

    r66739 r66740  
     12010-09-03  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Anders Carlsson.
     4
     5        <rdar://problem/8392655> REGRESSION (r57215): Decomposed diacritics render incorrectly when preceded by stacked diacritics
     6        https://bugs.webkit.org/show_bug.cgi?id=45182
     7
     8        Test: fast/text/decomposed-after-stacked-diacritics.html
     9
     10        * platform/graphics/Font.cpp:
     11        (WebCore::Font::codePath): Do not bail out if the run contains stacked diacritics, since
     12        it may also contain characters that require the complex text code path.
     13
    1142010-09-03  Mikhail Naganov  <mnaganov@chromium.org>
    215
  • trunk/WebCore/platform/graphics/Font.cpp

    r63950 r66740  
    278278#endif
    279279
     280    CodePath result = Simple;
     281
    280282    // Start from 0 since drawing and highlighting also measure the characters before run->from
    281283    for (int i = 0; i < run.length(); i++) {
     
    313315        if (c < 0x1E00) // U+1E00 through U+2000 characters with diacritics and stacked diacritics
    314316            continue;
    315         if (c <= 0x2000)
    316             return SimpleWithGlyphOverflow;
     317        if (c <= 0x2000) {
     318            result = SimpleWithGlyphOverflow;
     319            continue;
     320        }
    317321
    318322        if (c < 0x20D0) // U+20D0 through U+20FF Combining marks for symbols
     
    330334        return Complex;
    331335
    332     return Simple;
    333 }
    334 
    335 }
     336    return result;
     337}
     338
     339}
Note: See TracChangeset for help on using the changeset viewer.