| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 static PassRefPtrWillBeRawPtr<CSSFontSelector> create(Document* document) | 50 static PassRefPtrWillBeRawPtr<CSSFontSelector> create(Document* document) |
| 51 { | 51 { |
| 52 return adoptRefWillBeNoop(new CSSFontSelector(document)); | 52 return adoptRefWillBeNoop(new CSSFontSelector(document)); |
| 53 } | 53 } |
| 54 virtual ~CSSFontSelector(); | 54 virtual ~CSSFontSelector(); |
| 55 | 55 |
| 56 virtual unsigned version() const OVERRIDE { return m_fontFaceCache.version()
; } | 56 virtual unsigned version() const OVERRIDE { return m_fontFaceCache.version()
; } |
| 57 | 57 |
| 58 virtual PassRefPtr<FontData> getFontData(const FontDescription&, const Atomi
cString&) OVERRIDE; | 58 virtual PassRefPtr<FontData> getFontData(const FontDescription&, const Atomi
cString&) OVERRIDE; |
| 59 virtual void willUseFontData(const FontDescription&, const AtomicString& fam
ily, UChar32) OVERRIDE; | 59 virtual void willUseFontData(const FontDescription&, const AtomicString& fam
ily, UChar32) OVERRIDE; |
| 60 bool isPlatformFontAvailable(const FontDescription&, const AtomicString& fam
ily); |
| 60 | 61 |
| 61 #if !ENABLE(OILPAN) | 62 #if !ENABLE(OILPAN) |
| 62 void clearDocument(); | 63 void clearDocument(); |
| 63 #endif | 64 #endif |
| 64 | 65 |
| 65 void fontFaceInvalidated(); | 66 void fontFaceInvalidated(); |
| 66 | 67 |
| 67 // FontCacheClient implementation | 68 // FontCacheClient implementation |
| 68 virtual void fontCacheInvalidated() OVERRIDE; | 69 virtual void fontCacheInvalidated() OVERRIDE; |
| 69 | 70 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 91 FontFaceCache m_fontFaceCache; | 92 FontFaceCache m_fontFaceCache; |
| 92 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSFontSelectorClient> > m_clients; | 93 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSFontSelectorClient> > m_clients; |
| 93 | 94 |
| 94 RefPtrWillBeMember<FontLoader> m_fontLoader; | 95 RefPtrWillBeMember<FontLoader> m_fontLoader; |
| 95 GenericFontFamilySettings m_genericFontFamilySettings; | 96 GenericFontFamilySettings m_genericFontFamilySettings; |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 } // namespace WebCore | 99 } // namespace WebCore |
| 99 | 100 |
| 100 #endif // CSSFontSelector_h | 101 #endif // CSSFontSelector_h |
| OLD | NEW |