| 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 26 matching lines...) Expand all Loading... |
| 37 #include "wtf/HashSet.h" | 37 #include "wtf/HashSet.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class CSSFontSelectorClient; | 41 class CSSFontSelectorClient; |
| 42 class Document; | 42 class Document; |
| 43 class FontDescription; | 43 class FontDescription; |
| 44 | 44 |
| 45 class CORE_EXPORT CSSFontSelector : public FontSelector { | 45 class CORE_EXPORT CSSFontSelector : public FontSelector { |
| 46 public: | 46 public: |
| 47 static RawPtr<CSSFontSelector> create(Document* document) | 47 static CSSFontSelector* create(Document* document) |
| 48 { | 48 { |
| 49 return new CSSFontSelector(document); | 49 return new CSSFontSelector(document); |
| 50 } | 50 } |
| 51 ~CSSFontSelector() override; | 51 ~CSSFontSelector() override; |
| 52 | 52 |
| 53 unsigned version() const override { return m_fontFaceCache.version(); } | 53 unsigned version() const override { return m_fontFaceCache.version(); } |
| 54 | 54 |
| 55 PassRefPtr<FontData> getFontData(const FontDescription&, const AtomicString&
) override; | 55 PassRefPtr<FontData> getFontData(const FontDescription&, const AtomicString&
) override; |
| 56 void willUseFontData(const FontDescription&, const AtomicString& family, UCh
ar32) override; | 56 void willUseFontData(const FontDescription&, const AtomicString& family, UCh
ar32) override; |
| 57 void willUseRange(const FontDescription&, const AtomicString& familyName, co
nst FontDataForRangeSet&) override; | 57 void willUseRange(const FontDescription&, const AtomicString& familyName, co
nst FontDataForRangeSet&) override; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 FontFaceCache m_fontFaceCache; | 94 FontFaceCache m_fontFaceCache; |
| 95 HeapHashSet<WeakMember<CSSFontSelectorClient>> m_clients; | 95 HeapHashSet<WeakMember<CSSFontSelectorClient>> m_clients; |
| 96 | 96 |
| 97 Member<FontLoader> m_fontLoader; | 97 Member<FontLoader> m_fontLoader; |
| 98 GenericFontFamilySettings m_genericFontFamilySettings; | 98 GenericFontFamilySettings m_genericFontFamilySettings; |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace blink | 101 } // namespace blink |
| 102 | 102 |
| 103 #endif // CSSFontSelector_h | 103 #endif // CSSFontSelector_h |
| OLD | NEW |