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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
83 // FontCacheClient implementation | 83 // FontCacheClient implementation |
84 virtual void fontCacheInvalidated() OVERRIDE; | 84 virtual void fontCacheInvalidated() OVERRIDE; |
85 | 85 |
86 void registerForInvalidationCallbacks(CSSFontSelectorClient*); | 86 void registerForInvalidationCallbacks(CSSFontSelectorClient*); |
87 void unregisterForInvalidationCallbacks(CSSFontSelectorClient*); | 87 void unregisterForInvalidationCallbacks(CSSFontSelectorClient*); |
88 | 88 |
89 Document* document() const { return m_document; } | 89 Document* document() const { return m_document; } |
90 CSSSegmentedFontFaceCache* fontFaceCache() { return &m_cssSegmentedFontFaceC ache; } | 90 CSSSegmentedFontFaceCache* fontFaceCache() { return &m_cssSegmentedFontFaceC ache; } |
91 | 91 |
92 const GenericFontFamilySettings& genericFontFamilySettings() const { return m_genericFontFamilySettings; } | 92 const GenericFontFamilySettings& genericFontFamilySettings() const { return m_genericFontFamilySettings; } |
93 void updateGenericFontFamilySettings(Document&); | |
dglazkov
2014/01/29 05:11:50
This sounds terrifying. Why do we ever need to do
tasak
2014/01/29 10:13:43
So would you help me to fix fast/text/internationa
| |
93 | 94 |
94 void beginLoadingFontSoon(FontResource*); | 95 void beginLoadingFontSoon(FontResource*); |
95 void loadPendingFonts(); | 96 void loadPendingFonts(); |
96 | 97 |
97 private: | 98 private: |
98 explicit CSSFontSelector(Document*); | 99 explicit CSSFontSelector(Document*); |
99 | 100 |
100 void dispatchInvalidationCallbacks(); | 101 void dispatchInvalidationCallbacks(); |
101 | 102 |
102 Document* m_document; | 103 Document* m_document; |
103 // FIXME: Move to Document or StyleEngine. | 104 // FIXME: Move to Document or StyleEngine. |
104 CSSSegmentedFontFaceCache m_cssSegmentedFontFaceCache; | 105 CSSSegmentedFontFaceCache m_cssSegmentedFontFaceCache; |
105 HashSet<CSSFontSelectorClient*> m_clients; | 106 HashSet<CSSFontSelectorClient*> m_clients; |
106 | 107 |
107 FontLoader m_fontLoader; | 108 FontLoader m_fontLoader; |
108 GenericFontFamilySettings m_genericFontFamilySettings; | 109 GenericFontFamilySettings m_genericFontFamilySettings; |
109 }; | 110 }; |
110 | 111 |
111 } // namespace WebCore | 112 } // namespace WebCore |
112 | 113 |
113 #endif // CSSFontSelector_h | 114 #endif // CSSFontSelector_h |
OLD | NEW |