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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 public: | 45 public: |
46 static CSSFontSelector* create(Document* document) | 46 static CSSFontSelector* create(Document* document) |
47 { | 47 { |
48 return new CSSFontSelector(document); | 48 return new CSSFontSelector(document); |
49 } | 49 } |
50 ~CSSFontSelector() override; | 50 ~CSSFontSelector() override; |
51 | 51 |
52 unsigned version() const override { return m_fontFaceCache.version(); } | 52 unsigned version() const override { return m_fontFaceCache.version(); } |
53 | 53 |
54 PassRefPtr<FontData> getFontData(const FontDescription&, const AtomicString&
) override; | 54 PassRefPtr<FontData> getFontData(const FontDescription&, const AtomicString&
) override; |
55 void willUseFontData(const FontDescription&, const AtomicString& family, UCh
ar32) override; | 55 void willUseFontData(const FontDescription&, const AtomicString& family, con
st String& text) override; |
56 void willUseRange(const FontDescription&, const AtomicString& familyName, co
nst FontDataForRangeSet&) override; | 56 void willUseRange(const FontDescription&, const AtomicString& familyName, co
nst FontDataForRangeSet&) override; |
57 bool isPlatformFontAvailable(const FontDescription&, const AtomicString& fam
ily); | 57 bool isPlatformFontAvailable(const FontDescription&, const AtomicString& fam
ily); |
58 | 58 |
59 void fontFaceInvalidated(); | 59 void fontFaceInvalidated(); |
60 | 60 |
61 // FontCacheClient implementation | 61 // FontCacheClient implementation |
62 void fontCacheInvalidated() override; | 62 void fontCacheInvalidated() override; |
63 | 63 |
64 void registerForInvalidationCallbacks(CSSFontSelectorClient*); | 64 void registerForInvalidationCallbacks(CSSFontSelectorClient*); |
65 void unregisterForInvalidationCallbacks(CSSFontSelectorClient*); | 65 void unregisterForInvalidationCallbacks(CSSFontSelectorClient*); |
(...skipping 18 matching lines...) Expand all Loading... |
84 WeakMember<Document> m_document; | 84 WeakMember<Document> m_document; |
85 // FIXME: Move to Document or StyleEngine. | 85 // FIXME: Move to Document or StyleEngine. |
86 FontFaceCache m_fontFaceCache; | 86 FontFaceCache m_fontFaceCache; |
87 HeapHashSet<WeakMember<CSSFontSelectorClient>> m_clients; | 87 HeapHashSet<WeakMember<CSSFontSelectorClient>> m_clients; |
88 GenericFontFamilySettings m_genericFontFamilySettings; | 88 GenericFontFamilySettings m_genericFontFamilySettings; |
89 }; | 89 }; |
90 | 90 |
91 } // namespace blink | 91 } // namespace blink |
92 | 92 |
93 #endif // CSSFontSelector_h | 93 #endif // CSSFontSelector_h |
OLD | NEW |