| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 public: | 88 public: |
| 89 static PassRefPtrWillBeRawPtr<StyleRuleList> create() { return adoptRefWillB
eNoop(new StyleRuleList()); } | 89 static PassRefPtrWillBeRawPtr<StyleRuleList> create() { return adoptRefWillB
eNoop(new StyleRuleList()); } |
| 90 | 90 |
| 91 DEFINE_INLINE_TRACE() | 91 DEFINE_INLINE_TRACE() |
| 92 { | 92 { |
| 93 #if ENABLE(OILPAN) | 93 #if ENABLE(OILPAN) |
| 94 visitor->trace(m_list); | 94 visitor->trace(m_list); |
| 95 #endif | 95 #endif |
| 96 } | 96 } |
| 97 | 97 |
| 98 WillBeHeapVector<RawPtrWillBeMember<StyleRule> > m_list; | 98 WillBeHeapVector<RawPtrWillBeMember<StyleRule>> m_list; |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 // ElementRuleCollector is designed to be used as a stack object. | 101 // ElementRuleCollector is designed to be used as a stack object. |
| 102 // Create one, ask what rules the ElementResolveContext matches | 102 // Create one, ask what rules the ElementResolveContext matches |
| 103 // and then let it go out of scope. | 103 // and then let it go out of scope. |
| 104 // FIXME: Currently it modifies the LayoutStyle but should not! | 104 // FIXME: Currently it modifies the LayoutStyle but should not! |
| 105 class ElementRuleCollector { | 105 class ElementRuleCollector { |
| 106 STACK_ALLOCATED(); | 106 STACK_ALLOCATED(); |
| 107 WTF_MAKE_NONCOPYABLE(ElementRuleCollector); | 107 WTF_MAKE_NONCOPYABLE(ElementRuleCollector); |
| 108 public: | 108 public: |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 // Output. | 171 // Output. |
| 172 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; | 172 RefPtrWillBeMember<StaticCSSRuleList> m_cssRuleList; |
| 173 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; | 173 RefPtrWillBeMember<StyleRuleList> m_styleRuleList; |
| 174 MatchResult m_result; | 174 MatchResult m_result; |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 } // namespace blink | 177 } // namespace blink |
| 178 | 178 |
| 179 #endif // ElementRuleCollector_h | 179 #endif // ElementRuleCollector_h |
| OLD | NEW |