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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 class CSSFontSelector; | 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; |
57 public: | 57 public: |
58 | 58 |
59 class IgnoringPendingStylesheet : public TemporaryChange<bool> { | 59 class IgnoringPendingStylesheet : public TemporaryChange<bool> { |
60 public: | 60 public: |
61 IgnoringPendingStylesheet(StyleEngine* engine) | 61 IgnoringPendingStylesheet(StyleEngine* engine) |
62 : TemporaryChange<bool>(engine->m_ignorePendingStylesheets, true) | 62 : TemporaryChange<bool>(engine->m_ignorePendingStylesheets, true) |
63 { | 63 { |
64 } | 64 } |
65 }; | 65 }; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 void markDocumentDirty(); | 168 void markDocumentDirty(); |
169 | 169 |
170 PassRefPtrWillBeRawPtr<CSSStyleSheet> createSheet(Element*, const String& te
xt, TextPosition startPosition, bool createdByParser); | 170 PassRefPtrWillBeRawPtr<CSSStyleSheet> createSheet(Element*, const String& te
xt, TextPosition startPosition, bool createdByParser); |
171 void removeSheet(StyleSheetContents*); | 171 void removeSheet(StyleSheetContents*); |
172 | 172 |
173 void addScopedStyleResolver(const ScopedStyleResolver* resolver) { m_scopedS
tyleResolvers.add(resolver); } | 173 void addScopedStyleResolver(const ScopedStyleResolver* resolver) { m_scopedS
tyleResolvers.add(resolver); } |
174 void removeScopedStyleResolver(const ScopedStyleResolver* resolver) { m_scop
edStyleResolvers.remove(resolver); } | 174 void removeScopedStyleResolver(const ScopedStyleResolver* resolver) { m_scop
edStyleResolvers.remove(resolver); } |
175 bool hasOnlyScopedResolverForDocument() const { return m_scopedStyleResolver
s.size() == 1; } | 175 bool hasOnlyScopedResolverForDocument() const { return m_scopedStyleResolver
s.size() == 1; } |
176 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const; | 176 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const; |
177 | 177 |
178 virtual void trace(Visitor*) OVERRIDE; | 178 virtual void trace(Visitor*) override; |
179 | 179 |
180 private: | 180 private: |
181 // CSSFontSelectorClient implementation. | 181 // CSSFontSelectorClient implementation. |
182 virtual void fontsNeedUpdate(CSSFontSelector*) OVERRIDE; | 182 virtual void fontsNeedUpdate(CSSFontSelector*) override; |
183 | 183 |
184 private: | 184 private: |
185 StyleEngine(Document&); | 185 StyleEngine(Document&); |
186 | 186 |
187 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); | 187 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); |
188 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); | 188 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); |
189 bool shouldUpdateDocumentStyleSheetCollection(StyleResolverUpdateMode) const
; | 189 bool shouldUpdateDocumentStyleSheetCollection(StyleResolverUpdateMode) const
; |
190 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode) con
st; | 190 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode) con
st; |
191 bool shouldApplyXSLTransform() const; | 191 bool shouldApplyXSLTransform() const; |
192 | 192 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 257 |
258 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t
extToSheetCache; | 258 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t
extToSheetCache; |
259 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh
eetToTextCache; | 259 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh
eetToTextCache; |
260 | 260 |
261 RefPtrWillBeMember<ProcessingInstruction> m_xslStyleSheet; | 261 RefPtrWillBeMember<ProcessingInstruction> m_xslStyleSheet; |
262 }; | 262 }; |
263 | 263 |
264 } | 264 } |
265 | 265 |
266 #endif | 266 #endif |
OLD | NEW |