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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // Create one, ask what rules the ElementResolveContext matches | 100 // Create one, ask what rules the ElementResolveContext matches |
101 // and then let it go out of scope. | 101 // and then let it go out of scope. |
102 // FIXME: Currently it modifies the ComputedStyle but should not! | 102 // FIXME: Currently it modifies the ComputedStyle but should not! |
103 class ElementRuleCollector { | 103 class ElementRuleCollector { |
104 STACK_ALLOCATED(); | 104 STACK_ALLOCATED(); |
105 WTF_MAKE_NONCOPYABLE(ElementRuleCollector); | 105 WTF_MAKE_NONCOPYABLE(ElementRuleCollector); |
106 | 106 |
107 public: | 107 public: |
108 ElementRuleCollector(const ElementResolveContext&, | 108 ElementRuleCollector(const ElementResolveContext&, |
109 const SelectorFilter&, | 109 const SelectorFilter&, |
110 ComputedStyle* = 0); | 110 ComputedStyle* = nullptr); |
111 ~ElementRuleCollector(); | 111 ~ElementRuleCollector(); |
112 | 112 |
113 void SetMode(SelectorChecker::Mode mode) { mode_ = mode; } | 113 void SetMode(SelectorChecker::Mode mode) { mode_ = mode; } |
114 void SetPseudoStyleRequest(const PseudoStyleRequest& request) { | 114 void SetPseudoStyleRequest(const PseudoStyleRequest& request) { |
115 pseudo_style_request_ = request; | 115 pseudo_style_request_ = request; |
116 } | 116 } |
117 void SetSameOriginOnly(bool f) { same_origin_only_ = f; } | 117 void SetSameOriginOnly(bool f) { same_origin_only_ = f; } |
118 | 118 |
119 void SetMatchingUARules(bool matching_ua_rules) { | 119 void SetMatchingUARules(bool matching_ua_rules) { |
120 matching_ua_rules_ = matching_ua_rules; | 120 matching_ua_rules_ = matching_ua_rules; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 // Output. | 183 // Output. |
184 Member<StaticCSSRuleList> css_rule_list_; | 184 Member<StaticCSSRuleList> css_rule_list_; |
185 Member<StyleRuleList> style_rule_list_; | 185 Member<StyleRuleList> style_rule_list_; |
186 MatchResult result_; | 186 MatchResult result_; |
187 }; | 187 }; |
188 | 188 |
189 } // namespace blink | 189 } // namespace blink |
190 | 190 |
191 #endif // ElementRuleCollector_h | 191 #endif // ElementRuleCollector_h |
OLD | NEW |