| 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 19 matching lines...) Expand all Loading... |
| 30 #include "core/css/FontLoader.h" | 30 #include "core/css/FontLoader.h" |
| 31 #include "platform/fonts/FontSelector.h" | 31 #include "platform/fonts/FontSelector.h" |
| 32 #include "platform/fonts/GenericFontFamilySettings.h" | 32 #include "platform/fonts/GenericFontFamilySettings.h" |
| 33 #include "platform/heap/Handle.h" | 33 #include "platform/heap/Handle.h" |
| 34 #include "wtf/Forward.h" | 34 #include "wtf/Forward.h" |
| 35 #include "wtf/HashMap.h" | 35 #include "wtf/HashMap.h" |
| 36 #include "wtf/HashSet.h" | 36 #include "wtf/HashSet.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class CSSFontFace; | |
| 41 class CSSFontFaceRule; | |
| 42 class CSSFontSelectorClient; | 40 class CSSFontSelectorClient; |
| 43 class CSSSegmentedFontFace; | |
| 44 class Document; | 41 class Document; |
| 45 class FontDescription; | 42 class FontDescription; |
| 46 class StyleRuleFontFace; | |
| 47 | 43 |
| 48 class CSSFontSelector FINAL : public FontSelector { | 44 class CSSFontSelector FINAL : public FontSelector { |
| 49 public: | 45 public: |
| 50 static PassRefPtrWillBeRawPtr<CSSFontSelector> create(Document* document) | 46 static PassRefPtrWillBeRawPtr<CSSFontSelector> create(Document* document) |
| 51 { | 47 { |
| 52 return adoptRefWillBeNoop(new CSSFontSelector(document)); | 48 return adoptRefWillBeNoop(new CSSFontSelector(document)); |
| 53 } | 49 } |
| 54 virtual ~CSSFontSelector(); | 50 virtual ~CSSFontSelector(); |
| 55 | 51 |
| 56 virtual unsigned version() const OVERRIDE { return m_fontFaceCache.version()
; } | 52 virtual unsigned version() const OVERRIDE { return m_fontFaceCache.version()
; } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 FontFaceCache m_fontFaceCache; | 91 FontFaceCache m_fontFaceCache; |
| 96 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSFontSelectorClient> > m_clients; | 92 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSFontSelectorClient> > m_clients; |
| 97 | 93 |
| 98 RefPtrWillBeMember<FontLoader> m_fontLoader; | 94 RefPtrWillBeMember<FontLoader> m_fontLoader; |
| 99 GenericFontFamilySettings m_genericFontFamilySettings; | 95 GenericFontFamilySettings m_genericFontFamilySettings; |
| 100 }; | 96 }; |
| 101 | 97 |
| 102 } // namespace blink | 98 } // namespace blink |
| 103 | 99 |
| 104 #endif // CSSFontSelector_h | 100 #endif // CSSFontSelector_h |
| OLD | NEW |