| Index: Source/platform/fonts/WidthCache.h
|
| diff --git a/Source/platform/fonts/WidthCache.h b/Source/platform/fonts/WidthCache.h
|
| index 813d8e61d0e9700c72267f3d6ac196aa7ca98fcf..ad8989aad01d82719c8837de89972d69bf51c90a 100644
|
| --- a/Source/platform/fonts/WidthCache.h
|
| +++ b/Source/platform/fonts/WidthCache.h
|
| @@ -119,17 +119,15 @@ public:
|
| {
|
| }
|
|
|
| - float* add(const TextRun& run, float entry, bool hasKerningOrLigatures, bool hasWordSpacingOrLetterSpacing, GlyphOverflow* glyphOverflow)
|
| + float* add(const TextRun& run, float entry, bool hasWordSpacingOrLetterSpacing, GlyphOverflow* glyphOverflow)
|
| {
|
| - // The width cache is not really profitable unless we're doing expensive glyph transformations.
|
| - if (!hasKerningOrLigatures)
|
| - return 0;
|
| // Word spacing and letter spacing can change the width of a word.
|
| if (hasWordSpacingOrLetterSpacing)
|
| return 0;
|
| // Since this is just a width cache, we don't have enough information to satisfy glyph queries.
|
| - if (glyphOverflow)
|
| + if (glyphOverflow) {
|
| return 0;
|
| + }
|
| // If we allow tabs and a tab occurs inside a word, the width of the word varies based on its position on the line.
|
| if (run.allowTabs())
|
| return 0;
|
|
|