Changeset 131405 in webkit
- Timestamp:
- Oct 15, 2012 8:47:25 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r131403 r131405 1 2012-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 1 15 2012-10-15 Michael Saboff <msaboff@apple.com> 2 16 -
trunk/Source/WebCore/platform/graphics/WidthIterator.cpp
r131375 r131405 28 28 #include "SimpleFontData.h" 29 29 #include "SurrogatePairAwareTextIterator.h" 30 #include "TextRun.h"31 30 #include <wtf/MathExtras.h> 32 31 -
trunk/Source/WebCore/platform/graphics/WidthIterator.h
r131377 r131405 25 25 #include "Font.h" 26 26 #include "SVGGlyph.h" 27 #include "TextRun.h" 27 28 #include <wtf/HashSet.h> 28 29 #include <wtf/Vector.h> … … 92 93 inline unsigned advanceInternal(TextIterator&, GlyphBuffer*); 93 94 94 bool shouldApplyFontTransforms() const { return m_ typesettingFeatures & (Kerning | Ligatures); }95 bool shouldApplyFontTransforms() const { return m_run.length() > 1 && (m_typesettingFeatures & (Kerning | Ligatures)); } 95 96 96 97 TypesettingFeatures m_typesettingFeatures;
Note: See TracChangeset
for help on using the changeset viewer.