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.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 bool checkOne(const SelectorCheckingContext&, const SiblingTraversalStrategy
&, unsigned* specificity = 0) const; | 108 bool checkOne(const SelectorCheckingContext&, const SiblingTraversalStrategy
&, unsigned* specificity = 0) const; |
109 | 109 |
110 bool strictParsing() const { return m_strictParsing; } | 110 bool strictParsing() const { return m_strictParsing; } |
111 | 111 |
112 Mode mode() const { return m_mode; } | 112 Mode mode() const { return m_mode; } |
113 | 113 |
114 static bool tagMatches(const Element&, const QualifiedName&); | 114 static bool tagMatches(const Element&, const QualifiedName&); |
115 static bool isCommonPseudoClassSelector(const CSSSelector&); | 115 static bool isCommonPseudoClassSelector(const CSSSelector&); |
116 static bool matchesFocusPseudoClass(const Element&); | 116 static bool matchesFocusPseudoClass(const Element&); |
117 static bool matchesSpatialNavigationFocusPseudoClass(const Element&); | 117 static bool matchesSpatialNavigationFocusPseudoClass(const Element&); |
| 118 static bool matchesListBoxPseudoClass(const Element&); |
118 static bool checkExactAttribute(const Element&, const QualifiedName& selecto
rAttributeName, const StringImpl* value); | 119 static bool checkExactAttribute(const Element&, const QualifiedName& selecto
rAttributeName, const StringImpl* value); |
119 | 120 |
120 enum LinkMatchMask { MatchLink = 1, MatchVisited = 2, MatchAll = MatchLink |
MatchVisited }; | 121 enum LinkMatchMask { MatchLink = 1, MatchVisited = 2, MatchAll = MatchLink |
MatchVisited }; |
121 static unsigned determineLinkMatchType(const CSSSelector&); | 122 static unsigned determineLinkMatchType(const CSSSelector&); |
122 | 123 |
123 static bool isHostInItsShadowTree(const Element&, const ContainerNode* scope
); | 124 static bool isHostInItsShadowTree(const Element&, const ContainerNode* scope
); |
124 | 125 |
125 private: | 126 private: |
126 template<typename SiblingTraversalStrategy> | 127 template<typename SiblingTraversalStrategy> |
127 Match matchForSubSelector(const SelectorCheckingContext&, const SiblingTrave
rsalStrategy&, MatchResult*) const; | 128 Match matchForSubSelector(const SelectorCheckingContext&, const SiblingTrave
rsalStrategy&, MatchResult*) const; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 176 } |
176 | 177 |
177 inline bool SelectorChecker::isHostInItsShadowTree(const Element& element, const
ContainerNode* scope) | 178 inline bool SelectorChecker::isHostInItsShadowTree(const Element& element, const
ContainerNode* scope) |
178 { | 179 { |
179 return scope && scope->isInShadowTree() && scope->shadowHost() == element; | 180 return scope && scope->isInShadowTree() && scope->shadowHost() == element; |
180 } | 181 } |
181 | 182 |
182 } | 183 } |
183 | 184 |
184 #endif | 185 #endif |
OLD | NEW |