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

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

Issue 2420413005: Collect @viewport before constructing RuleSets. (Closed)
Patch Set: Rebased Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RuleSet.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 * 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 return &m_universalRules; 193 return &m_universalRules;
194 } 194 }
195 const HeapVector<RuleData>* shadowHostRules() const { 195 const HeapVector<RuleData>* shadowHostRules() const {
196 ASSERT(!m_pendingRules); 196 ASSERT(!m_pendingRules);
197 return &m_shadowHostRules; 197 return &m_shadowHostRules;
198 } 198 }
199 const HeapVector<Member<StyleRulePage>>& pageRules() const { 199 const HeapVector<Member<StyleRulePage>>& pageRules() const {
200 ASSERT(!m_pendingRules); 200 ASSERT(!m_pendingRules);
201 return m_pageRules; 201 return m_pageRules;
202 } 202 }
203 const HeapVector<Member<StyleRuleViewport>>& viewportRules() const {
204 ASSERT(!m_pendingRules);
205 return m_viewportRules;
206 }
207 const HeapVector<Member<StyleRuleFontFace>>& fontFaceRules() const { 203 const HeapVector<Member<StyleRuleFontFace>>& fontFaceRules() const {
208 return m_fontFaceRules; 204 return m_fontFaceRules;
209 } 205 }
210 const HeapVector<Member<StyleRuleKeyframes>>& keyframesRules() const { 206 const HeapVector<Member<StyleRuleKeyframes>>& keyframesRules() const {
211 return m_keyframesRules; 207 return m_keyframesRules;
212 } 208 }
213 const HeapVector<MinimalRuleData>& deepCombinatorOrShadowPseudoRules() const { 209 const HeapVector<MinimalRuleData>& deepCombinatorOrShadowPseudoRules() const {
214 return m_deepCombinatorOrShadowPseudoRules; 210 return m_deepCombinatorOrShadowPseudoRules;
215 } 211 }
216 const HeapVector<MinimalRuleData>& contentPseudoElementRules() const { 212 const HeapVector<MinimalRuleData>& contentPseudoElementRules() const {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 CompactRuleMap m_classRules; 297 CompactRuleMap m_classRules;
302 CompactRuleMap m_tagRules; 298 CompactRuleMap m_tagRules;
303 CompactRuleMap m_shadowPseudoElementRules; 299 CompactRuleMap m_shadowPseudoElementRules;
304 HeapVector<RuleData> m_linkPseudoClassRules; 300 HeapVector<RuleData> m_linkPseudoClassRules;
305 HeapVector<RuleData> m_cuePseudoRules; 301 HeapVector<RuleData> m_cuePseudoRules;
306 HeapVector<RuleData> m_focusPseudoClassRules; 302 HeapVector<RuleData> m_focusPseudoClassRules;
307 HeapVector<RuleData> m_universalRules; 303 HeapVector<RuleData> m_universalRules;
308 HeapVector<RuleData> m_shadowHostRules; 304 HeapVector<RuleData> m_shadowHostRules;
309 RuleFeatureSet m_features; 305 RuleFeatureSet m_features;
310 HeapVector<Member<StyleRulePage>> m_pageRules; 306 HeapVector<Member<StyleRulePage>> m_pageRules;
311 HeapVector<Member<StyleRuleViewport>> m_viewportRules;
312 HeapVector<Member<StyleRuleFontFace>> m_fontFaceRules; 307 HeapVector<Member<StyleRuleFontFace>> m_fontFaceRules;
313 HeapVector<Member<StyleRuleKeyframes>> m_keyframesRules; 308 HeapVector<Member<StyleRuleKeyframes>> m_keyframesRules;
314 HeapVector<MinimalRuleData> m_deepCombinatorOrShadowPseudoRules; 309 HeapVector<MinimalRuleData> m_deepCombinatorOrShadowPseudoRules;
315 HeapVector<MinimalRuleData> m_contentPseudoElementRules; 310 HeapVector<MinimalRuleData> m_contentPseudoElementRules;
316 HeapVector<MinimalRuleData> m_slottedPseudoElementRules; 311 HeapVector<MinimalRuleData> m_slottedPseudoElementRules;
317 312
318 MediaQueryResultList m_viewportDependentMediaQueryResults; 313 MediaQueryResultList m_viewportDependentMediaQueryResults;
319 MediaQueryResultList m_deviceDependentMediaQueryResults; 314 MediaQueryResultList m_deviceDependentMediaQueryResults;
320 315
321 unsigned m_ruleCount; 316 unsigned m_ruleCount;
322 Member<PendingRuleMaps> m_pendingRules; 317 Member<PendingRuleMaps> m_pendingRules;
323 318
324 #ifndef NDEBUG 319 #ifndef NDEBUG
325 HeapVector<RuleData> m_allRules; 320 HeapVector<RuleData> m_allRules;
326 #endif 321 #endif
327 }; 322 };
328 323
329 } // namespace blink 324 } // namespace blink
330 325
331 #endif // RuleSet_h 326 #endif // RuleSet_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RuleSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698