Changeset 189466 in webkit


Ignore:
Timestamp:
Sep 7, 2015 11:26:46 AM (9 years ago)
Author:
Antti Koivisto
Message:

Remove GlyphPage::mayUseMixedFontsWhenFilling
https://bugs.webkit.org/show_bug.cgi?id=148928

Reviewed by Dan Bernstein.

http://trac.webkit.org/188566 removed support for composite fonts. We never need to use mixed
glyph pages for fonts anymore.

  • platform/graphics/Font.cpp:

(WebCore::createAndFillGlyphPage):

  • platform/graphics/GlyphPage.h:

(WebCore::GlyphPage::GlyphPage):
(WebCore::GlyphPage::mayUseMixedFontsWhenFilling): Deleted.

  • platform/graphics/mac/GlyphPageMac.cpp:

(WebCore::shouldUseCoreText):
(WebCore::GlyphPage::fill):
(WebCore::GlyphPage::mayUseMixedFontsWhenFilling): Deleted.

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r189465 r189466  
     12015-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
    1212015-09-07  Antti Koivisto  <antti@apple.com>
    222
  • trunk/Source/WebCore/platform/graphics/Font.cpp

    r189465 r189466  
    227227    // Success is not guaranteed. For example, Times fails to fill page 260, giving glyph data
    228228    // 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);
    234230
    235231    bool haveGlyphs = fillGlyphPage(*glyphPage, buffer, bufferLength, font);
  • trunk/Source/WebCore/platform/graphics/GlyphPage.h

    r189465 r189466  
    158158    // Implemented by the platform.
    159159    bool fill(UChar* characterBuffer, unsigned bufferLength, const Font*);
    160 #if PLATFORM(COCOA)
    161     static bool mayUseMixedFontsWhenFilling(const UChar* characterBuffer, unsigned bufferLength, const Font*);
    162 #else
    163     static bool mayUseMixedFontsWhenFilling(const UChar*, unsigned, const Font*) { return false; }
    164 #endif
    165160
    166161private:
  • trunk/Source/WebCore/platform/graphics/mac/GlyphPageMac.cpp

    r189465 r189466  
    5959}
    6060
    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 #else
    67     UNUSED_PARAM(buffer);
    68     UNUSED_PARAM(bufferLength);
    69     UNUSED_PARAM(fontData);
    70     return false;
    71 #endif
    72 }
    73 
    7461bool GlyphPage::fill(UChar* buffer, unsigned bufferLength, const Font* fontData)
    7562{
Note: See TracChangeset for help on using the changeset viewer.