Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1167)

Unified Diff: Source/platform/fonts/FontFallbackList.cpp

Issue 1119663002: Making Unicode character names consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase patch Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/fonts/Font.cpp ('k') | Source/platform/fonts/GlyphPageTreeNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/FontFallbackList.cpp
diff --git a/Source/platform/fonts/FontFallbackList.cpp b/Source/platform/fonts/FontFallbackList.cpp
index eb2fc051195eaafaa3f82e831051ff071ae90de5..9086df068b4a6e258c73d95a8ceaf64560856079 100644
--- a/Source/platform/fonts/FontFallbackList.cpp
+++ b/Source/platform/fonts/FontFallbackList.cpp
@@ -111,17 +111,17 @@ const SimpleFontData* FontFallbackList::determinePrimarySimpleFontData(const Fon
// All fonts are custom fonts and are loading. Return the first FontData.
fontData = fontDataAt(fontDescription, 0);
if (fontData)
- return fontData->fontDataForCharacter(space);
+ return fontData->fontDataForCharacter(spaceCharacter);
SimpleFontData* lastResortFallback = FontCache::fontCache()->getLastResortFallbackFont(fontDescription).get();
ASSERT(lastResortFallback);
return lastResortFallback;
}
- if (fontData->isSegmented() && !toSegmentedFontData(fontData)->containsCharacter(space))
+ if (fontData->isSegmented() && !toSegmentedFontData(fontData)->containsCharacter(spaceCharacter))
continue;
- const SimpleFontData* fontDataForSpace = fontData->fontDataForCharacter(space);
+ const SimpleFontData* fontDataForSpace = fontData->fontDataForCharacter(spaceCharacter);
ASSERT(fontDataForSpace);
// When a custom font is loading, we should use the correct fallback font to layout the text.
« no previous file with comments | « Source/platform/fonts/Font.cpp ('k') | Source/platform/fonts/GlyphPageTreeNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698