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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 unsigned resolverAccessCount() const; | 163 unsigned resolverAccessCount() const; |
164 | 164 |
165 void markDocumentDirty(); | 165 void markDocumentDirty(); |
166 | 166 |
167 PassRefPtrWillBeRawPtr<CSSStyleSheet> createSheet(Element*, const String& te
xt, TextPosition startPosition, bool createdByParser); | 167 PassRefPtrWillBeRawPtr<CSSStyleSheet> createSheet(Element*, const String& te
xt, TextPosition startPosition, bool createdByParser); |
168 void removeSheet(StyleSheetContents*); | 168 void removeSheet(StyleSheetContents*); |
169 | 169 |
170 bool onlyDocumentHasStyles() const { return m_activeTreeScopes.isEmpty(); } | 170 bool onlyDocumentHasStyles() const { return m_activeTreeScopes.isEmpty(); } |
171 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const; | 171 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const; |
172 | 172 |
| 173 void platformColorsChanged(); |
| 174 |
173 virtual void trace(Visitor*) override; | 175 virtual void trace(Visitor*) override; |
174 | 176 |
175 private: | 177 private: |
176 // CSSFontSelectorClient implementation. | 178 // CSSFontSelectorClient implementation. |
177 virtual void fontsNeedUpdate(CSSFontSelector*) override; | 179 virtual void fontsNeedUpdate(CSSFontSelector*) override; |
178 | 180 |
179 private: | 181 private: |
180 StyleEngine(Document&); | 182 StyleEngine(Document&); |
181 | 183 |
182 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); | 184 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); |
(...skipping 63 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 |