Changeset 189466 in webkit
- Timestamp:
- Sep 7, 2015, 11:26:46 AM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r189465 r189466 1 2015-09-07 Antti Koivisto <antti@apple.com> 2 3 Remove GlyphPage::mayUseMixedFontsWhenFilling 4 https://bugs.webkit.org/show_bug.cgi?id=148928 5 6 Reviewed by Dan Bernstein. 7 8 http://trac.webkit.org/188566 removed support for composite fonts. We never need to use mixed 9 glyph pages for fonts anymore. 10 11 * platform/graphics/Font.cpp: 12 (WebCore::createAndFillGlyphPage): 13 * platform/graphics/GlyphPage.h: 14 (WebCore::GlyphPage::GlyphPage): 15 (WebCore::GlyphPage::mayUseMixedFontsWhenFilling): Deleted. 16 * platform/graphics/mac/GlyphPageMac.cpp: 17 (WebCore::shouldUseCoreText): 18 (WebCore::GlyphPage::fill): 19 (WebCore::GlyphPage::mayUseMixedFontsWhenFilling): Deleted. 20 1 21 2015-09-07 Antti Koivisto <antti@apple.com> 2 22 -
trunk/Source/WebCore/platform/graphics/Font.cpp
r189465 r189466 227 227 // Success is not guaranteed. For example, Times fails to fill page 260, giving glyph data 228 228 // for only 128 out of 256 characters. 229 RefPtr<GlyphPage> glyphPage; 230 if (GlyphPage::mayUseMixedFontsWhenFilling(buffer, bufferLength, font)) 231 glyphPage = GlyphPage::createForMixedFonts(); 232 else 233 glyphPage = GlyphPage::createForSingleFont(font); 229 RefPtr<GlyphPage> glyphPage = GlyphPage::createForSingleFont(font); 234 230 235 231 bool haveGlyphs = fillGlyphPage(*glyphPage, buffer, bufferLength, font); -
trunk/Source/WebCore/platform/graphics/GlyphPage.h
r189465 r189466 158 158 // Implemented by the platform. 159 159 bool fill(UChar* characterBuffer, unsigned bufferLength, const Font*); 160 #if PLATFORM(COCOA)161 static bool mayUseMixedFontsWhenFilling(const UChar* characterBuffer, unsigned bufferLength, const Font*);162 #else163 static bool mayUseMixedFontsWhenFilling(const UChar*, unsigned, const Font*) { return false; }164 #endif165 160 166 161 private: -
trunk/Source/WebCore/platform/graphics/mac/GlyphPageMac.cpp
r189465 r189466 59 59 } 60 60 61 bool GlyphPage::mayUseMixedFontsWhenFilling(const UChar* buffer, unsigned bufferLength, const Font* fontData)62 {63 #if USE(APPKIT)64 // FIXME: This is only really needed for composite font references.65 return shouldUseCoreText(buffer, bufferLength, fontData);66 #else67 UNUSED_PARAM(buffer);68 UNUSED_PARAM(bufferLength);69 UNUSED_PARAM(fontData);70 return false;71 #endif72 }73 74 61 bool GlyphPage::fill(UChar* buffer, unsigned bufferLength, const Font* fontData) 75 62 {
Note:
See TracChangeset
for help on using the changeset viewer.