Changeset 152690 in webkit


Ignore:
Timestamp:
Jul 15, 2013, 6:21:14 PM (12 years ago)
Author:
Lucas Forschler
Message:

Merged r152653. <rdar://problem/14442444>

Location:
branches/safari-537-branch
Files:
3 edited
3 copied

Legend:

Unmodified
Added
Removed
  • branches/safari-537-branch/LayoutTests/ChangeLog

    r152683 r152690  
     12013-07-15  Lucas Forschler  <lforschler@apple.com>
     2
     3        Merge r152653
     4
     5    2013-07-15  Antoine Quint  <graouts@apple.com>
     6
     7            Text with "text-overflow:ellipsis" and an SVG font do not render correctly
     8            https://bugs.webkit.org/show_bug.cgi?id=118669
     9
     10            Reviewed by David Kilzer.
     11
     12            * platform/mac/svg/text/text-overflow-ellipsis-svgfont-kerning-ligatures-expected.png: Added.
     13            * platform/mac/svg/text/text-overflow-ellipsis-svgfont-kerning-ligatures-expected.txt: Added.
     14            * svg/text/text-overflow-ellipsis-svgfont-kerning-ligatures.html: Added.
     15
    1162013-07-15  Lucas Forschler  <lforschler@apple.com>
    217
  • branches/safari-537-branch/Source/WebCore/ChangeLog

    r152687 r152690  
     12013-07-15  Lucas Forschler  <lforschler@apple.com>
     2
     3        Merge r152653
     4
     5    2013-07-15  Antoine Quint  <graouts@apple.com>
     6
     7            Text with "text-overflow:ellipsis" and an SVG font do not render correctly
     8            https://bugs.webkit.org/show_bug.cgi?id=118669
     9
     10            Reviewed by David Kilzer.
     11
     12            Partial runs may be routed through the complex path in several Font functions. While incomplete,
     13            we can check for a non-NULL run.renderingContext() and exempt runs that have it from being forced
     14            down the complex path. A more thorough fix is already tracked by http://webkit.org/b/100050.
     15
     16            Adding a new testcase which is a copy of svg/text/text-overflow-ellipsis-svgfont.html with kerning
     17            and ligatures turned on explicitly since DRT runs with those off by default and this option is required
     18            to be on for the issue to reproduce.
     19
     20            Fix courtesy of Dan Bernstein.
     21
     22            Test: svg/text/text-overflow-ellipsis-svgfont-kerning-ligatures.html
     23
     24            * platform/graphics/Font.cpp:
     25            (WebCore::Font::drawText):
     26            (WebCore::Font::drawEmphasisMarks):
     27            (WebCore::Font::selectionRectForText):
     28
    1292013-07-15  Lucas Forschler  <lforschler@apple.com>
    230
  • branches/safari-537-branch/Source/WebCore/platform/graphics/Font.cpp

    r151327 r152690  
    267267    CodePath codePathToUse = codePath(run);
    268268    // FIXME: Use the fast code path once it handles partial runs with kerning and ligatures. See http://webkit.org/b/100050
    269     if (codePathToUse != Complex && typesettingFeatures() && (from || to != run.length()))
     269    if (codePathToUse != Complex && typesettingFeatures() && (from || to != run.length()) && !run.renderingContext())
    270270        codePathToUse = Complex;
    271271
     
    286286    CodePath codePathToUse = codePath(run);
    287287    // FIXME: Use the fast code path once it handles partial runs with kerning and ligatures. See http://webkit.org/b/100050
    288     if (codePathToUse != Complex && typesettingFeatures() && (from || to != run.length()))
     288    if (codePathToUse != Complex && typesettingFeatures() && (from || to != run.length()) && !run.renderingContext())
    289289        codePathToUse = Complex;
    290290
     
    363363    CodePath codePathToUse = codePath(run);
    364364    // FIXME: Use the fast code path once it handles partial runs with kerning and ligatures. See http://webkit.org/b/100050
    365     if (codePathToUse != Complex && typesettingFeatures() && (from || to != run.length()))
     365    if (codePathToUse != Complex && typesettingFeatures() && (from || to != run.length()) && !run.renderingContext())
    366366        codePathToUse = Complex;
    367367
Note: See TracChangeset for help on using the changeset viewer.