Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(598)

Side by Side Diff: Source/core/dom/StyleEngine.h

Issue 947393002: InlinedVisitor: Migrate dom to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 void markDocumentDirty(); 170 void markDocumentDirty();
171 171
172 PassRefPtrWillBeRawPtr<CSSStyleSheet> createSheet(Element*, const String& te xt, TextPosition startPosition, bool createdByParser); 172 PassRefPtrWillBeRawPtr<CSSStyleSheet> createSheet(Element*, const String& te xt, TextPosition startPosition, bool createdByParser);
173 void removeSheet(StyleSheetContents*); 173 void removeSheet(StyleSheetContents*);
174 174
175 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const; 175 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const;
176 176
177 void platformColorsChanged(); 177 void platformColorsChanged();
178 178
179 virtual void trace(Visitor*) override; 179 DECLARE_VIRTUAL_TRACE();
180 180
181 private: 181 private:
182 // CSSFontSelectorClient implementation. 182 // CSSFontSelectorClient implementation.
183 virtual void fontsNeedUpdate(CSSFontSelector*) override; 183 virtual void fontsNeedUpdate(CSSFontSelector*) override;
184 184
185 private: 185 private:
186 StyleEngine(Document&); 186 StyleEngine(Document&);
187 187
188 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); 188 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&);
189 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); 189 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 { 225 {
226 m_treeScopes.clear(); 226 m_treeScopes.clear();
227 m_hash.clear(); 227 m_hash.clear();
228 } 228 }
229 229
230 size_t size() const { return m_treeScopes.size(); } 230 size_t size() const { return m_treeScopes.size(); }
231 231
232 TreeScope* operator[](size_t i) { return m_treeScopes[i]; } 232 TreeScope* operator[](size_t i) { return m_treeScopes[i]; }
233 const TreeScope* operator[](size_t i) const { return m_treeScopes[i]; } 233 const TreeScope* operator[](size_t i) const { return m_treeScopes[i]; }
234 234
235 void trace(Visitor*); 235 DECLARE_TRACE();
236 236
237 private: 237 private:
238 WillBeHeapVector<RawPtrWillBeMember<TreeScope>, 16> m_treeScopes; 238 WillBeHeapVector<RawPtrWillBeMember<TreeScope>, 16> m_treeScopes;
239 UnorderedTreeScopeSet m_hash; 239 UnorderedTreeScopeSet m_hash;
240 }; 240 };
241 241
242 static void insertTreeScopeInDocumentOrder(OrderedTreeScopeSet&, TreeScope*) ; 242 static void insertTreeScopeInDocumentOrder(OrderedTreeScopeSet&, TreeScope*) ;
243 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(UnorderedTreeScopeSet::ite rator begin, UnorderedTreeScopeSet::iterator end); 243 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(UnorderedTreeScopeSet::ite rator begin, UnorderedTreeScopeSet::iterator end);
244 244
245 void createResolver(); 245 void createResolver();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 297
298 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; 298 RefPtrWillBeMember<CSSFontSelector> m_fontSelector;
299 299
300 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache; 300 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache;
301 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache; 301 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache;
302 }; 302 };
303 303
304 } 304 }
305 305
306 #endif 306 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698