Index: Source/platform/fonts/Font.cpp |
diff --git a/Source/platform/fonts/Font.cpp b/Source/platform/fonts/Font.cpp |
index ebaffa5968dc41c55d653f9215396609eb021bfb..fa4626727b636dbbc6f530dd7507aeca23d39341 100644 |
--- a/Source/platform/fonts/Font.cpp |
+++ b/Source/platform/fonts/Font.cpp |
@@ -561,12 +561,7 @@ std::pair<GlyphData, GlyphPage*> Font::glyphDataAndPageForCharacter(UChar32& c, |
bool Font::primaryFontHasGlyphForCharacter(UChar32 character) const |
{ |
ASSERT(primaryFont()); |
- unsigned pageNumber = (character / GlyphPage::size); |
- |
- GlyphPageTreeNode* node = GlyphPageTreeNode::getNormalRootChild(primaryFont(), pageNumber); |
- GlyphPage* page = node->page(); |
- |
- return page && page->glyphForCharacter(character); |
+ return primaryFont()->fontHasGlyphForCharacter(character); |
} |
// FIXME: This function may not work if the emphasis mark uses a complex script, but none of the |