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

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

Issue 23890025: WIP (Introduce WTF::NonNullPtr<T>.) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/core/dom/SelectorQuery.cpp ('k') | Source/core/dom/StyleSheetCollections.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void resetCSSFeatureFlags(const RuleFeatureSet&); 107 void resetCSSFeatureFlags(const RuleFeatureSet&);
108 108
109 void didModifySeamlessParentStyleSheet() { m_needsDocumentStyleSheetsUpdate = true; } 109 void didModifySeamlessParentStyleSheet() { m_needsDocumentStyleSheetsUpdate = true; }
110 void didRemoveShadowRoot(ShadowRoot*); 110 void didRemoveShadowRoot(ShadowRoot*);
111 void appendActiveAuthorStyleSheets(StyleResolver*); 111 void appendActiveAuthorStyleSheets(StyleResolver*);
112 void getActiveAuthorStyleSheets(Vector<const Vector<RefPtr<CSSStyleSheet> >* >& activeAuthorStyleSheets) const; 112 void getActiveAuthorStyleSheets(Vector<const Vector<RefPtr<CSSStyleSheet> >* >& activeAuthorStyleSheets) const;
113 113
114 private: 114 private:
115 StyleSheetCollections(Document&); 115 StyleSheetCollections(Document&);
116 116
117 StyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); 117 StyleSheetCollection* ensureStyleSheetCollectionFor(NonNullPtr<TreeScope>);
118 StyleSheetCollection* styleSheetCollectionFor(TreeScope&); 118 StyleSheetCollection* styleSheetCollectionFor(NonNullPtr<TreeScope>);
119 void activeStyleSheetsUpdatedForInspector(); 119 void activeStyleSheetsUpdatedForInspector();
120 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode); 120 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode);
121 121
122 typedef ListHashSet<TreeScope*, 16> TreeScopeSet; 122 typedef ListHashSet<TreeScope*, 16> TreeScopeSet;
123 static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*); 123 static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*);
124 124
125 Document& m_document; 125 Document& m_document;
126 126
127 // Track the number of currently loading top-level stylesheets needed for re ndering. 127 // Track the number of currently loading top-level stylesheets needed for re ndering.
128 // Sheets loaded using the @import directive are not included in this count. 128 // Sheets loaded using the @import directive are not included in this count.
(...skipping 25 matching lines...) Expand all
154 bool m_usesSiblingRules; 154 bool m_usesSiblingRules;
155 bool m_usesSiblingRulesOverride; 155 bool m_usesSiblingRulesOverride;
156 bool m_usesFirstLineRules; 156 bool m_usesFirstLineRules;
157 bool m_usesFirstLetterRules; 157 bool m_usesFirstLetterRules;
158 bool m_usesRemUnits; 158 bool m_usesRemUnits;
159 }; 159 };
160 160
161 } 161 }
162 162
163 #endif 163 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/SelectorQuery.cpp ('k') | Source/core/dom/StyleSheetCollections.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698