| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 class CORE_EXPORT CSSFontSelector : public FontSelector { | 44 class CORE_EXPORT CSSFontSelector : public FontSelector { |
| 45 public: | 45 public: |
| 46 static CSSFontSelector* Create(Document* document) { | 46 static CSSFontSelector* Create(Document* document) { |
| 47 return new CSSFontSelector(document); | 47 return new CSSFontSelector(document); |
| 48 } | 48 } |
| 49 ~CSSFontSelector() override; | 49 ~CSSFontSelector() override; |
| 50 | 50 |
| 51 unsigned Version() const override { return font_face_cache_.Version(); } | 51 unsigned Version() const override { return font_face_cache_.Version(); } |
| 52 | 52 |
| 53 void ReportNotDefGlyph() const override; |
| 54 |
| 53 PassRefPtr<FontData> GetFontData(const FontDescription&, | 55 PassRefPtr<FontData> GetFontData(const FontDescription&, |
| 54 const AtomicString&) override; | 56 const AtomicString&) override; |
| 55 void WillUseFontData(const FontDescription&, | 57 void WillUseFontData(const FontDescription&, |
| 56 const AtomicString& family, | 58 const AtomicString& family, |
| 57 const String& text) override; | 59 const String& text) override; |
| 58 void WillUseRange(const FontDescription&, | 60 void WillUseRange(const FontDescription&, |
| 59 const AtomicString& family_name, | 61 const AtomicString& family_name, |
| 60 const FontDataForRangeSet&) override; | 62 const FontDataForRangeSet&) override; |
| 61 bool IsPlatformFamilyMatchAvailable(const FontDescription&, | 63 bool IsPlatformFamilyMatchAvailable(const FontDescription&, |
| 62 const AtomicString& family); | 64 const AtomicString& family); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 91 WeakMember<Document> document_; | 93 WeakMember<Document> document_; |
| 92 // FIXME: Move to Document or StyleEngine. | 94 // FIXME: Move to Document or StyleEngine. |
| 93 FontFaceCache font_face_cache_; | 95 FontFaceCache font_face_cache_; |
| 94 HeapHashSet<WeakMember<CSSFontSelectorClient>> clients_; | 96 HeapHashSet<WeakMember<CSSFontSelectorClient>> clients_; |
| 95 GenericFontFamilySettings generic_font_family_settings_; | 97 GenericFontFamilySettings generic_font_family_settings_; |
| 96 }; | 98 }; |
| 97 | 99 |
| 98 } // namespace blink | 100 } // namespace blink |
| 99 | 101 |
| 100 #endif // CSSFontSelector_h | 102 #endif // CSSFontSelector_h |
| OLD | NEW |