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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 class CSSFontSelector; | 44 class CSSFontSelector; |
45 class CSSStyleSheet; | 45 class CSSStyleSheet; |
46 class FontSelector; | 46 class FontSelector; |
47 class Node; | 47 class Node; |
48 class RuleFeatureSet; | 48 class RuleFeatureSet; |
49 class ShadowTreeStyleSheetCollection; | 49 class ShadowTreeStyleSheetCollection; |
50 class StyleResolver; | 50 class StyleResolver; |
| 51 class StyleRuleFontFace; |
51 class StyleSheet; | 52 class StyleSheet; |
52 class StyleSheetCollection; | 53 class StyleSheetCollection; |
53 class StyleSheetContents; | 54 class StyleSheetContents; |
54 class StyleSheetList; | 55 class StyleSheetList; |
55 | 56 |
56 class StyleResolverChange { | 57 class StyleResolverChange { |
57 public: | 58 public: |
58 StyleResolverChange() | 59 StyleResolverChange() |
59 : m_needsRepaint(false) | 60 : m_needsRepaint(false) |
60 , m_needsStyleRecalc(false) | 61 , m_needsStyleRecalc(false) |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 m_resolver->appendPendingAuthorStyleSheets(); | 163 m_resolver->appendPendingAuthorStyleSheets(); |
163 } | 164 } |
164 return *m_resolver.get(); | 165 return *m_resolver.get(); |
165 } | 166 } |
166 | 167 |
167 bool hasResolver() const { return m_resolver.get(); } | 168 bool hasResolver() const { return m_resolver.get(); } |
168 void clearResolver(); | 169 void clearResolver(); |
169 void clearMasterResolver(); | 170 void clearMasterResolver(); |
170 | 171 |
171 CSSFontSelector* fontSelector() { return m_fontSelector.get(); } | 172 CSSFontSelector* fontSelector() { return m_fontSelector.get(); } |
| 173 void removeFontFaceRules(const Vector<const StyleRuleFontFace*>&); |
| 174 // FIXME: still need to use resetFontSelector when GenericFontFamilySettings
is changed. |
172 void resetFontSelector(); | 175 void resetFontSelector(); |
173 | 176 |
174 void didAttach(); | 177 void didAttach(); |
175 void didDetach(); | 178 void didDetach(); |
176 bool shouldClearResolver() const; | 179 bool shouldClearResolver() const; |
177 StyleResolverChange resolverChanged(RecalcStyleTime, StyleResolverUpdateMode
); | 180 StyleResolverChange resolverChanged(RecalcStyleTime, StyleResolverUpdateMode
); |
178 unsigned resolverAccessCount() const; | 181 unsigned resolverAccessCount() const; |
179 | 182 |
180 void markDocumentDirty(); | 183 void markDocumentDirty(); |
181 | 184 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 unsigned m_lastResolverAccessCount; | 245 unsigned m_lastResolverAccessCount; |
243 Timer<StyleEngine> m_resolverThrowawayTimer; | 246 Timer<StyleEngine> m_resolverThrowawayTimer; |
244 OwnPtr<StyleResolver> m_resolver; | 247 OwnPtr<StyleResolver> m_resolver; |
245 | 248 |
246 RefPtr<CSSFontSelector> m_fontSelector; | 249 RefPtr<CSSFontSelector> m_fontSelector; |
247 }; | 250 }; |
248 | 251 |
249 } | 252 } |
250 | 253 |
251 #endif | 254 #endif |
OLD | NEW |