OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) |
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 10 matching lines...) Expand all Loading... | |
21 * You should have received a copy of the GNU Library General Public License | 21 * You should have received a copy of the GNU Library General Public License |
22 * along with this library; see the file COPYING.LIB. If not, write to | 22 * along with this library; see the file COPYING.LIB. If not, write to |
23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
25 * | 25 * |
26 */ | 26 */ |
27 | 27 |
28 #ifndef StyleEngine_h | 28 #ifndef StyleEngine_h |
29 #define StyleEngine_h | 29 #define StyleEngine_h |
30 | 30 |
31 #include "core/css/CSSFontSelector.h" | |
31 #include "core/css/CSSFontSelectorClient.h" | 32 #include "core/css/CSSFontSelectorClient.h" |
32 #include "core/css/resolver/StyleResolver.h" | 33 #include "core/css/resolver/StyleResolver.h" |
33 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
34 #include "core/dom/DocumentOrderedList.h" | 35 #include "core/dom/DocumentOrderedList.h" |
35 #include "core/dom/DocumentStyleSheetCollection.h" | 36 #include "core/dom/DocumentStyleSheetCollection.h" |
36 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
37 #include "wtf/FastAllocBase.h" | 38 #include "wtf/FastAllocBase.h" |
38 #include "wtf/ListHashSet.h" | 39 #include "wtf/ListHashSet.h" |
39 #include "wtf/RefPtr.h" | 40 #include "wtf/RefPtr.h" |
40 #include "wtf/TemporaryChange.h" | 41 #include "wtf/TemporaryChange.h" |
41 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
42 #include "wtf/text/WTFString.h" | 43 #include "wtf/text/WTFString.h" |
43 | 44 |
44 namespace blink { | 45 namespace blink { |
45 | 46 |
46 class CSSFontSelector; | |
47 class CSSStyleSheet; | 47 class CSSStyleSheet; |
48 class Node; | 48 class Node; |
49 class RuleFeatureSet; | 49 class RuleFeatureSet; |
50 class ShadowTreeStyleSheetCollection; | 50 class ShadowTreeStyleSheetCollection; |
51 class StyleRuleFontFace; | 51 class StyleRuleFontFace; |
52 class StyleSheet; | 52 class StyleSheet; |
53 class StyleSheetContents; | 53 class StyleSheetContents; |
54 | 54 |
55 class StyleEngine final : public CSSFontSelectorClient { | 55 class StyleEngine final : public CSSFontSelectorClient { |
56 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 56 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 m_resolver->appendPendingAuthorStyleSheets(); | 145 m_resolver->appendPendingAuthorStyleSheets(); |
146 } | 146 } |
147 return *m_resolver.get(); | 147 return *m_resolver.get(); |
148 } | 148 } |
149 | 149 |
150 bool hasResolver() const { return m_resolver.get(); } | 150 bool hasResolver() const { return m_resolver.get(); } |
151 void clearResolver(); | 151 void clearResolver(); |
152 void clearMasterResolver(); | 152 void clearMasterResolver(); |
153 | 153 |
154 CSSFontSelector* fontSelector() { return m_fontSelector.get(); } | 154 CSSFontSelector* fontSelector() { return m_fontSelector.get(); } |
155 void setFontSelector(PassRefPtrWillBeRawPtr<CSSFontSelector> fontSelector) { m_fontSelector = fontSelector; } | |
tkent
2014/12/16 05:42:39
nit: Including CSSFontSelector.h for this inline f
keishi
2014/12/16 12:21:03
Done.
| |
156 | |
155 void removeFontFaceRules(const WillBeHeapVector<RawPtrWillBeMember<const Sty leRuleFontFace> >&); | 157 void removeFontFaceRules(const WillBeHeapVector<RawPtrWillBeMember<const Sty leRuleFontFace> >&); |
156 void clearFontCache(); | 158 void clearFontCache(); |
157 // updateGenericFontFamilySettings is used from WebSettingsImpl. | 159 // updateGenericFontFamilySettings is used from WebSettingsImpl. |
158 void updateGenericFontFamilySettings(); | 160 void updateGenericFontFamilySettings(); |
159 | 161 |
160 void didDetach(); | 162 void didDetach(); |
161 bool shouldClearResolver() const; | 163 bool shouldClearResolver() const; |
162 void resolverChanged(StyleResolverUpdateMode); | 164 void resolverChanged(StyleResolverUpdateMode); |
163 unsigned resolverAccessCount() const; | 165 unsigned resolverAccessCount() const; |
164 | 166 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
246 | 248 |
247 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; | 249 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; |
248 | 250 |
249 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache; | 251 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache; |
250 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache; | 252 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache; |
251 }; | 253 }; |
252 | 254 |
253 } | 255 } |
254 | 256 |
255 #endif | 257 #endif |
OLD | NEW |