diff options
Diffstat (limited to 'gfx/thebes/gfxFont.cpp')
-rw-r--r-- | gfx/thebes/gfxFont.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gfx/thebes/gfxFont.cpp b/gfx/thebes/gfxFont.cpp index f79c5cbd72..8ac64bc1b4 100644 --- a/gfx/thebes/gfxFont.cpp +++ b/gfx/thebes/gfxFont.cpp @@ -725,10 +725,9 @@ gfxShapedText::SetGlyphs(uint32_t aIndex, CompressedGlyph aGlyph, #define ZWNJ 0x200C #define ZWJ 0x200D static inline bool -IsDefaultIgnorable(uint32_t aChar) +IsIgnorable(uint32_t aChar) { - return GetIdentifierModification(aChar) == XIDMOD_DEFAULT_IGNORABLE || - aChar == ZWNJ || aChar == ZWJ; + return (IsDefaultIgnorable(aChar)) || aChar == ZWNJ || aChar == ZWJ; } void @@ -744,7 +743,7 @@ gfxShapedText::SetMissingGlyph(uint32_t aIndex, uint32_t aChar, gfxFont *aFont) DetailedGlyph *details = AllocateDetailedGlyphs(aIndex, 1); details->mGlyphID = aChar; - if (IsDefaultIgnorable(aChar)) { + if (IsIgnorable(aChar)) { // Setting advance width to zero will prevent drawing the hexbox details->mAdvance = 0; } else { @@ -762,7 +761,7 @@ gfxShapedText::SetMissingGlyph(uint32_t aIndex, uint32_t aChar, gfxFont *aFont) bool gfxShapedText::FilterIfIgnorable(uint32_t aIndex, uint32_t aCh) { - if (IsDefaultIgnorable(aCh)) { + if (IsIgnorable(aCh)) { // There are a few default-ignorables of Letter category (currently, // just the Hangul filler characters) that we'd better not discard // if they're followed by additional characters in the same cluster. |