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

Side by Side Diff: third_party/WebKit/Source/core/css/RuleSet.h

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 void addRulesFromSheet(StyleSheetContents*, 152 void addRulesFromSheet(StyleSheetContents*,
153 const MediaQueryEvaluator&, 153 const MediaQueryEvaluator&,
154 AddRuleFlags = RuleHasNoSpecialState); 154 AddRuleFlags = RuleHasNoSpecialState);
155 void addStyleRule(StyleRule*, AddRuleFlags); 155 void addStyleRule(StyleRule*, AddRuleFlags);
156 void addRule(StyleRule*, unsigned selectorIndex, AddRuleFlags); 156 void addRule(StyleRule*, unsigned selectorIndex, AddRuleFlags);
157 157
158 const RuleFeatureSet& features() const { return m_features; } 158 const RuleFeatureSet& features() const { return m_features; }
159 159
160 const HeapTerminatedArray<RuleData>* idRules(const AtomicString& key) const { 160 const HeapTerminatedArray<RuleData>* idRules(const AtomicString& key) const {
161 ASSERT(!m_pendingRules); 161 DCHECK(!m_pendingRules);
162 return m_idRules.at(key); 162 return m_idRules.at(key);
163 } 163 }
164 const HeapTerminatedArray<RuleData>* classRules( 164 const HeapTerminatedArray<RuleData>* classRules(
165 const AtomicString& key) const { 165 const AtomicString& key) const {
166 ASSERT(!m_pendingRules); 166 DCHECK(!m_pendingRules);
167 return m_classRules.at(key); 167 return m_classRules.at(key);
168 } 168 }
169 const HeapTerminatedArray<RuleData>* tagRules(const AtomicString& key) const { 169 const HeapTerminatedArray<RuleData>* tagRules(const AtomicString& key) const {
170 ASSERT(!m_pendingRules); 170 DCHECK(!m_pendingRules);
171 return m_tagRules.at(key); 171 return m_tagRules.at(key);
172 } 172 }
173 const HeapTerminatedArray<RuleData>* shadowPseudoElementRules( 173 const HeapTerminatedArray<RuleData>* shadowPseudoElementRules(
174 const AtomicString& key) const { 174 const AtomicString& key) const {
175 ASSERT(!m_pendingRules); 175 DCHECK(!m_pendingRules);
176 return m_shadowPseudoElementRules.at(key); 176 return m_shadowPseudoElementRules.at(key);
177 } 177 }
178 const HeapVector<RuleData>* linkPseudoClassRules() const { 178 const HeapVector<RuleData>* linkPseudoClassRules() const {
179 ASSERT(!m_pendingRules); 179 DCHECK(!m_pendingRules);
180 return &m_linkPseudoClassRules; 180 return &m_linkPseudoClassRules;
181 } 181 }
182 const HeapVector<RuleData>* cuePseudoRules() const { 182 const HeapVector<RuleData>* cuePseudoRules() const {
183 ASSERT(!m_pendingRules); 183 DCHECK(!m_pendingRules);
184 return &m_cuePseudoRules; 184 return &m_cuePseudoRules;
185 } 185 }
186 const HeapVector<RuleData>* focusPseudoClassRules() const { 186 const HeapVector<RuleData>* focusPseudoClassRules() const {
187 ASSERT(!m_pendingRules); 187 DCHECK(!m_pendingRules);
188 return &m_focusPseudoClassRules; 188 return &m_focusPseudoClassRules;
189 } 189 }
190 const HeapVector<RuleData>* placeholderPseudoRules() const { 190 const HeapVector<RuleData>* placeholderPseudoRules() const {
191 DCHECK(!m_pendingRules); 191 DCHECK(!m_pendingRules);
192 return &m_placeholderPseudoRules; 192 return &m_placeholderPseudoRules;
193 } 193 }
194 const HeapVector<RuleData>* universalRules() const { 194 const HeapVector<RuleData>* universalRules() const {
195 ASSERT(!m_pendingRules); 195 DCHECK(!m_pendingRules);
196 return &m_universalRules; 196 return &m_universalRules;
197 } 197 }
198 const HeapVector<RuleData>* shadowHostRules() const { 198 const HeapVector<RuleData>* shadowHostRules() const {
199 ASSERT(!m_pendingRules); 199 DCHECK(!m_pendingRules);
200 return &m_shadowHostRules; 200 return &m_shadowHostRules;
201 } 201 }
202 const HeapVector<Member<StyleRulePage>>& pageRules() const { 202 const HeapVector<Member<StyleRulePage>>& pageRules() const {
203 ASSERT(!m_pendingRules); 203 DCHECK(!m_pendingRules);
204 return m_pageRules; 204 return m_pageRules;
205 } 205 }
206 const HeapVector<Member<StyleRuleFontFace>>& fontFaceRules() const { 206 const HeapVector<Member<StyleRuleFontFace>>& fontFaceRules() const {
207 return m_fontFaceRules; 207 return m_fontFaceRules;
208 } 208 }
209 const HeapVector<Member<StyleRuleKeyframes>>& keyframesRules() const { 209 const HeapVector<Member<StyleRuleKeyframes>>& keyframesRules() const {
210 return m_keyframesRules; 210 return m_keyframesRules;
211 } 211 }
212 const HeapVector<MinimalRuleData>& deepCombinatorOrShadowPseudoRules() const { 212 const HeapVector<MinimalRuleData>& deepCombinatorOrShadowPseudoRules() const {
213 return m_deepCombinatorOrShadowPseudoRules; 213 return m_deepCombinatorOrShadowPseudoRules;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 Member<PendingRuleMaps> m_pendingRules; 312 Member<PendingRuleMaps> m_pendingRules;
313 313
314 #ifndef NDEBUG 314 #ifndef NDEBUG
315 HeapVector<RuleData> m_allRules; 315 HeapVector<RuleData> m_allRules;
316 #endif 316 #endif
317 }; 317 };
318 318
319 } // namespace blink 319 } // namespace blink
320 320
321 #endif // RuleSet_h 321 #endif // RuleSet_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeature.cpp ('k') | third_party/WebKit/Source/core/css/RuleSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698