| Index: third_party/WebKit/Source/platform/fonts/Font.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/Font.cpp b/third_party/WebKit/Source/platform/fonts/Font.cpp
|
| index 6eaf1399049204240cbdb01fbd0aab2fa0463d30..8e0ec9b8e3c235324b44434cc36274cc3eb6483f 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/Font.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/Font.cpp
|
| @@ -767,7 +767,9 @@ Vector<CharacterRange> Font::individualCharacterRanges(const TextRun& run) const
|
| // will be improved shaping in SVG when compared to HTML.
|
| FontCachePurgePreventer purgePreventer;
|
| CachingWordShaper shaper(m_fontFallbackList->shapeCache(m_fontDescription));
|
| - return shaper.individualCharacterRanges(this, run);
|
| + auto ranges = shaper.individualCharacterRanges(this, run);
|
| + DCHECK_EQ(ranges.size(), static_cast<unsigned>(run.length()));
|
| + return ranges;
|
| }
|
|
|
| float Font::floatWidthForSimpleText(const TextRun& run, HashSet<const SimpleFontData*>* fallbackFonts, FloatRect* glyphBounds) const
|
|
|