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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 #if !ENABLE(OILPAN) | 69 #if !ENABLE(OILPAN) |
70 void unregisterForInvalidationCallbacks(CSSFontSelectorClient*); | 70 void unregisterForInvalidationCallbacks(CSSFontSelectorClient*); |
71 #endif | 71 #endif |
72 | 72 |
73 Document* document() const { return m_document; } | 73 Document* document() const { return m_document; } |
74 FontFaceCache* fontFaceCache() { return &m_fontFaceCache; } | 74 FontFaceCache* fontFaceCache() { return &m_fontFaceCache; } |
75 FontLoader* fontLoader() { return m_fontLoader.get(); } | 75 FontLoader* fontLoader() { return m_fontLoader.get(); } |
76 | 76 |
77 const GenericFontFamilySettings& genericFontFamilySettings() const { return
m_genericFontFamilySettings; } | 77 const GenericFontFamilySettings& genericFontFamilySettings() const { return
m_genericFontFamilySettings; } |
78 void updateGenericFontFamilySettings(Document&); | 78 void updateGenericFontFamilySettings(Document&); |
| 79 void reportFirstNonBlankText(bool isCustomFont) override; |
79 | 80 |
80 DECLARE_VIRTUAL_TRACE(); | 81 DECLARE_VIRTUAL_TRACE(); |
81 | 82 |
82 protected: | 83 protected: |
83 explicit CSSFontSelector(Document*); | 84 explicit CSSFontSelector(Document*); |
84 | 85 |
85 void dispatchInvalidationCallbacks(); | 86 void dispatchInvalidationCallbacks(); |
86 | 87 |
87 private: | 88 private: |
88 // FIXME: Oilpan: Ideally this should just be a traced Member but that will | 89 // FIXME: Oilpan: Ideally this should just be a traced Member but that will |
89 // currently leak because ComputedStyle and its data are not on the heap. | 90 // currently leak because ComputedStyle and its data are not on the heap. |
90 // See crbug.com/383860 for details. | 91 // See crbug.com/383860 for details. |
91 RawPtrWillBeWeakMember<Document> m_document; | 92 RawPtrWillBeWeakMember<Document> m_document; |
92 // FIXME: Move to Document or StyleEngine. | 93 // FIXME: Move to Document or StyleEngine. |
93 FontFaceCache m_fontFaceCache; | 94 FontFaceCache m_fontFaceCache; |
94 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSFontSelectorClient>> m_clients; | 95 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSFontSelectorClient>> m_clients; |
95 | 96 |
96 RefPtrWillBeMember<FontLoader> m_fontLoader; | 97 RefPtrWillBeMember<FontLoader> m_fontLoader; |
97 GenericFontFamilySettings m_genericFontFamilySettings; | 98 GenericFontFamilySettings m_genericFontFamilySettings; |
98 }; | 99 }; |
99 | 100 |
100 } // namespace blink | 101 } // namespace blink |
101 | 102 |
102 #endif // CSSFontSelector_h | 103 #endif // CSSFontSelector_h |
OLD | NEW |