| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 uint64_t m_position; | 65 uint64_t m_position; |
| 66 RawPtr<const CSSStyleSheet> m_parentStyleSheet; | 66 RawPtr<const CSSStyleSheet> m_parentStyleSheet; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| 70 | 70 |
| 71 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::MatchedRule); | 71 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::MatchedRule); |
| 72 | 72 |
| 73 namespace blink { | 73 namespace blink { |
| 74 | 74 |
| 75 // FIXME: oilpan: when transition types are gone this class can be replaced with
HeapVector. | |
| 76 class StyleRuleList final : public RefCounted<StyleRuleList> { | 75 class StyleRuleList final : public RefCounted<StyleRuleList> { |
| 77 public: | 76 public: |
| 78 static PassRefPtr<StyleRuleList> create() { return adoptRef(new StyleRuleLis
t()); } | 77 static PassRefPtr<StyleRuleList> create() { return adoptRef(new StyleRuleLis
t()); } |
| 79 | 78 |
| 80 Vector<RawPtr<StyleRule> > m_list; | 79 Vector<RawPtr<StyleRule> > m_list; |
| 81 }; | 80 }; |
| 82 | 81 |
| 83 // ElementRuleCollector is designed to be used as a stack object. | 82 // ElementRuleCollector is designed to be used as a stack object. |
| 84 // Create one, ask what rules the ElementResolveContext matches | 83 // Create one, ask what rules the ElementResolveContext matches |
| 85 // and then let it go out of scope. | 84 // and then let it go out of scope. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 122 |
| 124 OwnPtr<Vector<MatchedRule, 32> > m_matchedRules; | 123 OwnPtr<Vector<MatchedRule, 32> > m_matchedRules; |
| 125 | 124 |
| 126 // Output. | 125 // Output. |
| 127 MatchResult m_result; | 126 MatchResult m_result; |
| 128 }; | 127 }; |
| 129 | 128 |
| 130 } // namespace blink | 129 } // namespace blink |
| 131 | 130 |
| 132 #endif // SKY_ENGINE_CORE_CSS_ELEMENTRULECOLLECTOR_H_ | 131 #endif // SKY_ENGINE_CORE_CSS_ELEMENTRULECOLLECTOR_H_ |
| OLD | NEW |