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

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

Issue 2528633003: Move MediaQueryResults to RuleFeatureSet. (Closed)
Patch Set: Removed members. Created 4 years 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } 212 }
213 const HeapVector<MinimalRuleData>& deepCombinatorOrShadowPseudoRules() const { 213 const HeapVector<MinimalRuleData>& deepCombinatorOrShadowPseudoRules() const {
214 return m_deepCombinatorOrShadowPseudoRules; 214 return m_deepCombinatorOrShadowPseudoRules;
215 } 215 }
216 const HeapVector<MinimalRuleData>& contentPseudoElementRules() const { 216 const HeapVector<MinimalRuleData>& contentPseudoElementRules() const {
217 return m_contentPseudoElementRules; 217 return m_contentPseudoElementRules;
218 } 218 }
219 const HeapVector<MinimalRuleData>& slottedPseudoElementRules() const { 219 const HeapVector<MinimalRuleData>& slottedPseudoElementRules() const {
220 return m_slottedPseudoElementRules; 220 return m_slottedPseudoElementRules;
221 } 221 }
222 const MediaQueryResultList& viewportDependentMediaQueryResults() const {
223 return m_viewportDependentMediaQueryResults;
224 }
225 const MediaQueryResultList& deviceDependentMediaQueryResults() const {
226 return m_deviceDependentMediaQueryResults;
227 }
228 222
229 unsigned ruleCount() const { return m_ruleCount; } 223 unsigned ruleCount() const { return m_ruleCount; }
230 224
231 void compactRulesIfNeeded() { 225 void compactRulesIfNeeded() {
232 if (!m_pendingRules) 226 if (!m_pendingRules)
233 return; 227 return;
234 compactRules(); 228 compactRules();
235 } 229 }
236 230
237 bool hasSlottedRules() const { 231 bool hasSlottedRules() const {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 HeapVector<RuleData> m_universalRules; 302 HeapVector<RuleData> m_universalRules;
309 HeapVector<RuleData> m_shadowHostRules; 303 HeapVector<RuleData> m_shadowHostRules;
310 RuleFeatureSet m_features; 304 RuleFeatureSet m_features;
311 HeapVector<Member<StyleRulePage>> m_pageRules; 305 HeapVector<Member<StyleRulePage>> m_pageRules;
312 HeapVector<Member<StyleRuleFontFace>> m_fontFaceRules; 306 HeapVector<Member<StyleRuleFontFace>> m_fontFaceRules;
313 HeapVector<Member<StyleRuleKeyframes>> m_keyframesRules; 307 HeapVector<Member<StyleRuleKeyframes>> m_keyframesRules;
314 HeapVector<MinimalRuleData> m_deepCombinatorOrShadowPseudoRules; 308 HeapVector<MinimalRuleData> m_deepCombinatorOrShadowPseudoRules;
315 HeapVector<MinimalRuleData> m_contentPseudoElementRules; 309 HeapVector<MinimalRuleData> m_contentPseudoElementRules;
316 HeapVector<MinimalRuleData> m_slottedPseudoElementRules; 310 HeapVector<MinimalRuleData> m_slottedPseudoElementRules;
317 311
318 MediaQueryResultList m_viewportDependentMediaQueryResults;
319 MediaQueryResultList m_deviceDependentMediaQueryResults;
320
321 unsigned m_ruleCount; 312 unsigned m_ruleCount;
322 Member<PendingRuleMaps> m_pendingRules; 313 Member<PendingRuleMaps> m_pendingRules;
323 314
324 #ifndef NDEBUG 315 #ifndef NDEBUG
325 HeapVector<RuleData> m_allRules; 316 HeapVector<RuleData> m_allRules;
326 #endif 317 #endif
327 }; 318 };
328 319
329 } // namespace blink 320 } // namespace blink
330 321
331 #endif // RuleSet_h 322 #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