| 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.
All rights reserved. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 const TerminatedArray<RuleData>* idRules(const AtomicString& key) const { AS
SERT(!m_pendingRules); return m_idRules.get(key); } | 90 const TerminatedArray<RuleData>* idRules(const AtomicString& key) const { AS
SERT(!m_pendingRules); return m_idRules.get(key); } |
| 91 const TerminatedArray<RuleData>* classRules(const AtomicString& key) const {
ASSERT(!m_pendingRules); return m_classRules.get(key); } | 91 const TerminatedArray<RuleData>* classRules(const AtomicString& key) const {
ASSERT(!m_pendingRules); return m_classRules.get(key); } |
| 92 const TerminatedArray<RuleData>* tagRules(const AtomicString& key) const { A
SSERT(!m_pendingRules); return m_tagRules.get(key); } | 92 const TerminatedArray<RuleData>* tagRules(const AtomicString& key) const { A
SSERT(!m_pendingRules); return m_tagRules.get(key); } |
| 93 const TerminatedArray<RuleData>* shadowPseudoElementRules(const AtomicString
& key) const { ASSERT(!m_pendingRules); return m_shadowPseudoElementRules.get(ke
y); } | 93 const TerminatedArray<RuleData>* shadowPseudoElementRules(const AtomicString
& key) const { ASSERT(!m_pendingRules); return m_shadowPseudoElementRules.get(ke
y); } |
| 94 const Vector<RuleData>* universalRules() const { ASSERT(!m_pendingRules); re
turn &m_universalRules; } | 94 const Vector<RuleData>* universalRules() const { ASSERT(!m_pendingRules); re
turn &m_universalRules; } |
| 95 const Vector<RawPtr<StyleRuleFontFace> >& fontFaceRules() const { return m_f
ontFaceRules; } | 95 const Vector<RawPtr<StyleRuleFontFace> >& fontFaceRules() const { return m_f
ontFaceRules; } |
| 96 const Vector<RawPtr<StyleRuleKeyframes> >& keyframesRules() const { return m
_keyframesRules; } | 96 const Vector<RawPtr<StyleRuleKeyframes> >& keyframesRules() const { return m
_keyframesRules; } |
| 97 const MediaQueryResultList& viewportDependentMediaQueryResults() const { ret
urn m_viewportDependentMediaQueryResults; } | 97 const MediaQueryResultList& viewportDependentMediaQueryResults() const { ret
urn m_viewportDependentMediaQueryResults; } |
| 98 | 98 |
| 99 unsigned ruleCount() const { return m_ruleCount; } | |
| 100 | |
| 101 void compactRulesIfNeeded() | 99 void compactRulesIfNeeded() |
| 102 { | 100 { |
| 103 if (!m_pendingRules) | 101 if (!m_pendingRules) |
| 104 return; | 102 return; |
| 105 compactRules(); | 103 compactRules(); |
| 106 } | 104 } |
| 107 | 105 |
| 108 #ifndef NDEBUG | 106 #ifndef NDEBUG |
| 109 void show(); | 107 void show(); |
| 110 #endif | 108 #endif |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 #ifndef NDEBUG | 163 #ifndef NDEBUG |
| 166 Vector<RuleData> m_allRules; | 164 Vector<RuleData> m_allRules; |
| 167 #endif | 165 #endif |
| 168 }; | 166 }; |
| 169 | 167 |
| 170 } // namespace blink | 168 } // namespace blink |
| 171 | 169 |
| 172 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::RuleData); | 170 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::RuleData); |
| 173 | 171 |
| 174 #endif // SKY_ENGINE_CORE_CSS_RULESET_H_ | 172 #endif // SKY_ENGINE_CORE_CSS_RULESET_H_ |
| OLD | NEW |