Changeset 131405 in webkit


Ignore:
Timestamp:
Oct 15, 2012 8:47:25 PM (12 years ago)
Author:
mitz@apple.com
Message:

Layout Test fast/text/justify-ideograph-leading-expansion.html is failing an assertion chromium mac
https://bugs.webkit.org/show_bug.cgi?id=99406

Reviewed by Darin Adler.

  • platform/graphics/WidthIterator.cpp:
  • platform/graphics/WidthIterator.h:

(WebCore::WidthIterator::shouldApplyFontTransforms): Changed to return false if the run is
shorter than 2 characters. 1-character are invariant under font transforms, and therefore
Font::codePath() sends them through WidthIterator even on platforms where WidthIterator
does not support kerning and ligatures.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r131403 r131405  
     12012-10-15  Dan Bernstein  <mitz@apple.com>
     2
     3        Layout Test fast/text/justify-ideograph-leading-expansion.html is failing an assertion chromium mac
     4        https://bugs.webkit.org/show_bug.cgi?id=99406
     5
     6        Reviewed by Darin Adler.
     7
     8        * platform/graphics/WidthIterator.cpp:
     9        * platform/graphics/WidthIterator.h:
     10        (WebCore::WidthIterator::shouldApplyFontTransforms): Changed to return false if the run is
     11        shorter than 2 characters. 1-character are invariant under font transforms, and therefore
     12        Font::codePath() sends them through WidthIterator even on platforms where WidthIterator
     13        does not support kerning and ligatures.
     14
    1152012-10-15  Michael Saboff  <msaboff@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/WidthIterator.cpp

    r131375 r131405  
    2828#include "SimpleFontData.h"
    2929#include "SurrogatePairAwareTextIterator.h"
    30 #include "TextRun.h"
    3130#include <wtf/MathExtras.h>
    3231
  • trunk/Source/WebCore/platform/graphics/WidthIterator.h

    r131377 r131405  
    2525#include "Font.h"
    2626#include "SVGGlyph.h"
     27#include "TextRun.h"
    2728#include <wtf/HashSet.h>
    2829#include <wtf/Vector.h>
     
    9293    inline unsigned advanceInternal(TextIterator&, GlyphBuffer*);
    9394
    94     bool shouldApplyFontTransforms() const { return m_typesettingFeatures & (Kerning | Ligatures); }
     95    bool shouldApplyFontTransforms() const { return m_run.length() > 1 && (m_typesettingFeatures & (Kerning | Ligatures)); }
    9596
    9697    TypesettingFeatures m_typesettingFeatures;
Note: See TracChangeset for help on using the changeset viewer.