OLD | NEW |
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 return &m_linkPseudoClassRules; | 181 return &m_linkPseudoClassRules; |
182 } | 182 } |
183 const HeapVector<RuleData>* cuePseudoRules() const { | 183 const HeapVector<RuleData>* cuePseudoRules() const { |
184 ASSERT(!m_pendingRules); | 184 ASSERT(!m_pendingRules); |
185 return &m_cuePseudoRules; | 185 return &m_cuePseudoRules; |
186 } | 186 } |
187 const HeapVector<RuleData>* focusPseudoClassRules() const { | 187 const HeapVector<RuleData>* focusPseudoClassRules() const { |
188 ASSERT(!m_pendingRules); | 188 ASSERT(!m_pendingRules); |
189 return &m_focusPseudoClassRules; | 189 return &m_focusPseudoClassRules; |
190 } | 190 } |
| 191 const HeapVector<RuleData>* placeholderPseudoRules() const { |
| 192 DCHECK(!m_pendingRules); |
| 193 return &m_placeholderPseudoRules; |
| 194 } |
191 const HeapVector<RuleData>* universalRules() const { | 195 const HeapVector<RuleData>* universalRules() const { |
192 ASSERT(!m_pendingRules); | 196 ASSERT(!m_pendingRules); |
193 return &m_universalRules; | 197 return &m_universalRules; |
194 } | 198 } |
195 const HeapVector<RuleData>* shadowHostRules() const { | 199 const HeapVector<RuleData>* shadowHostRules() const { |
196 ASSERT(!m_pendingRules); | 200 ASSERT(!m_pendingRules); |
197 return &m_shadowHostRules; | 201 return &m_shadowHostRules; |
198 } | 202 } |
199 const HeapVector<Member<StyleRulePage>>& pageRules() const { | 203 const HeapVector<Member<StyleRulePage>>& pageRules() const { |
200 ASSERT(!m_pendingRules); | 204 ASSERT(!m_pendingRules); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 return m_pendingRules.get(); | 297 return m_pendingRules.get(); |
294 } | 298 } |
295 | 299 |
296 CompactRuleMap m_idRules; | 300 CompactRuleMap m_idRules; |
297 CompactRuleMap m_classRules; | 301 CompactRuleMap m_classRules; |
298 CompactRuleMap m_tagRules; | 302 CompactRuleMap m_tagRules; |
299 CompactRuleMap m_shadowPseudoElementRules; | 303 CompactRuleMap m_shadowPseudoElementRules; |
300 HeapVector<RuleData> m_linkPseudoClassRules; | 304 HeapVector<RuleData> m_linkPseudoClassRules; |
301 HeapVector<RuleData> m_cuePseudoRules; | 305 HeapVector<RuleData> m_cuePseudoRules; |
302 HeapVector<RuleData> m_focusPseudoClassRules; | 306 HeapVector<RuleData> m_focusPseudoClassRules; |
| 307 HeapVector<RuleData> m_placeholderPseudoRules; |
303 HeapVector<RuleData> m_universalRules; | 308 HeapVector<RuleData> m_universalRules; |
304 HeapVector<RuleData> m_shadowHostRules; | 309 HeapVector<RuleData> m_shadowHostRules; |
305 RuleFeatureSet m_features; | 310 RuleFeatureSet m_features; |
306 HeapVector<Member<StyleRulePage>> m_pageRules; | 311 HeapVector<Member<StyleRulePage>> m_pageRules; |
307 HeapVector<Member<StyleRuleFontFace>> m_fontFaceRules; | 312 HeapVector<Member<StyleRuleFontFace>> m_fontFaceRules; |
308 HeapVector<Member<StyleRuleKeyframes>> m_keyframesRules; | 313 HeapVector<Member<StyleRuleKeyframes>> m_keyframesRules; |
309 HeapVector<MinimalRuleData> m_deepCombinatorOrShadowPseudoRules; | 314 HeapVector<MinimalRuleData> m_deepCombinatorOrShadowPseudoRules; |
310 HeapVector<MinimalRuleData> m_contentPseudoElementRules; | 315 HeapVector<MinimalRuleData> m_contentPseudoElementRules; |
311 HeapVector<MinimalRuleData> m_slottedPseudoElementRules; | 316 HeapVector<MinimalRuleData> m_slottedPseudoElementRules; |
312 | 317 |
313 MediaQueryResultList m_viewportDependentMediaQueryResults; | 318 MediaQueryResultList m_viewportDependentMediaQueryResults; |
314 MediaQueryResultList m_deviceDependentMediaQueryResults; | 319 MediaQueryResultList m_deviceDependentMediaQueryResults; |
315 | 320 |
316 unsigned m_ruleCount; | 321 unsigned m_ruleCount; |
317 Member<PendingRuleMaps> m_pendingRules; | 322 Member<PendingRuleMaps> m_pendingRules; |
318 | 323 |
319 #ifndef NDEBUG | 324 #ifndef NDEBUG |
320 HeapVector<RuleData> m_allRules; | 325 HeapVector<RuleData> m_allRules; |
321 #endif | 326 #endif |
322 }; | 327 }; |
323 | 328 |
324 } // namespace blink | 329 } // namespace blink |
325 | 330 |
326 #endif // RuleSet_h | 331 #endif // RuleSet_h |
OLD | NEW |