| 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 85803885a622628aaeea13cb3c44e944ee1f5cb3..1d224eec5715830117b6da9c856e5799cd8c22a9 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/Font.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/Font.cpp
|
| @@ -773,7 +773,11 @@ Vector<CharacterRange> Font::individualCharacterRanges(const TextRun& run) const
|
| FontCachePurgePreventer purgePreventer;
|
| CachingWordShaper shaper(m_fontFallbackList->shapeCache(m_fontDescription));
|
| auto ranges = shaper.individualCharacterRanges(this, run);
|
| - DCHECK_EQ(ranges.size(), run.length());
|
| + // The shaper should return ranges.size == run.length but on some platforms
|
| + // (OSX10.9.5) we are seeing cases in the upper end of the unicode range
|
| + // where this is not true (see: crbug.com/620952). To catch these cases on
|
| + // more popular platforms, and to protect users, we are using a CHECK here.
|
| + CHECK_EQ(ranges.size(), run.length());
|
| return ranges;
|
| }
|
|
|
|
|