OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. |
6 * All rights reserved. | 6 * All rights reserved. |
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 struct MatchResult { | 133 struct MatchResult { |
134 STACK_ALLOCATED(); | 134 STACK_ALLOCATED(); |
135 MatchResult() : dynamicPseudo(PseudoIdNone), specificity(0) {} | 135 MatchResult() : dynamicPseudo(PseudoIdNone), specificity(0) {} |
136 | 136 |
137 PseudoId dynamicPseudo; | 137 PseudoId dynamicPseudo; |
138 unsigned specificity; | 138 unsigned specificity; |
139 }; | 139 }; |
140 | 140 |
141 bool match(const SelectorCheckingContext& context, | 141 bool match(const SelectorCheckingContext& context, |
142 MatchResult& result) const { | 142 MatchResult& result) const { |
143 ASSERT(context.selector); | 143 DCHECK(context.selector); |
144 return matchSelector(context, result) == SelectorMatches; | 144 return matchSelector(context, result) == SelectorMatches; |
145 } | 145 } |
146 | 146 |
147 bool match(const SelectorCheckingContext& context) const { | 147 bool match(const SelectorCheckingContext& context) const { |
148 MatchResult ignoreResult; | 148 MatchResult ignoreResult; |
149 return match(context, ignoreResult); | 149 return match(context, ignoreResult); |
150 } | 150 } |
151 | 151 |
152 static bool matchesFocusPseudoClass(const Element&); | 152 static bool matchesFocusPseudoClass(const Element&); |
153 | 153 |
(...skipping 28 matching lines...) Expand all Loading... |
182 Mode m_mode; | 182 Mode m_mode; |
183 bool m_isUARule; | 183 bool m_isUARule; |
184 ComputedStyle* m_elementStyle; | 184 ComputedStyle* m_elementStyle; |
185 Member<LayoutScrollbar> m_scrollbar; | 185 Member<LayoutScrollbar> m_scrollbar; |
186 ScrollbarPart m_scrollbarPart; | 186 ScrollbarPart m_scrollbarPart; |
187 }; | 187 }; |
188 | 188 |
189 } // namespace blink | 189 } // namespace blink |
190 | 190 |
191 #endif | 191 #endif |
OLD | NEW |