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 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 case CSSSelector::PseudoRoot: | 115 case CSSSelector::PseudoRoot: |
116 case CSSSelector::PseudoScope: | 116 case CSSSelector::PseudoScope: |
117 case CSSSelector::PseudoScrollbar: | 117 case CSSSelector::PseudoScrollbar: |
118 case CSSSelector::PseudoScrollbarButton: | 118 case CSSSelector::PseudoScrollbarButton: |
119 case CSSSelector::PseudoScrollbarCorner: | 119 case CSSSelector::PseudoScrollbarCorner: |
120 case CSSSelector::PseudoScrollbarThumb: | 120 case CSSSelector::PseudoScrollbarThumb: |
121 case CSSSelector::PseudoScrollbarTrack: | 121 case CSSSelector::PseudoScrollbarTrack: |
122 case CSSSelector::PseudoScrollbarTrackPiece: | 122 case CSSSelector::PseudoScrollbarTrackPiece: |
123 case CSSSelector::PseudoWindowInactive: | 123 case CSSSelector::PseudoWindowInactive: |
124 case CSSSelector::PseudoSelection: | 124 case CSSSelector::PseudoSelection: |
| 125 case CSSSelector::PseudoCornerPresent: |
| 126 case CSSSelector::PseudoDecrement: |
| 127 case CSSSelector::PseudoIncrement: |
| 128 case CSSSelector::PseudoHorizontal: |
| 129 case CSSSelector::PseudoVertical: |
| 130 case CSSSelector::PseudoStart: |
| 131 case CSSSelector::PseudoEnd: |
| 132 case CSSSelector::PseudoDoubleButton: |
| 133 case CSSSelector::PseudoSingleButton: |
| 134 case CSSSelector::PseudoNoButton: |
125 case CSSSelector::PseudoFullScreen: | 135 case CSSSelector::PseudoFullScreen: |
126 case CSSSelector::PseudoFullScreenDocument: | 136 case CSSSelector::PseudoFullScreenDocument: |
127 case CSSSelector::PseudoFullScreenAncestor: | 137 case CSSSelector::PseudoFullScreenAncestor: |
128 case CSSSelector::PseudoInRange: | 138 case CSSSelector::PseudoInRange: |
129 case CSSSelector::PseudoOutOfRange: | 139 case CSSSelector::PseudoOutOfRange: |
130 case CSSSelector::PseudoWebKitCustomElement: | 140 case CSSSelector::PseudoWebKitCustomElement: |
131 case CSSSelector::PseudoUnresolved: | 141 case CSSSelector::PseudoUnresolved: |
132 case CSSSelector::PseudoContent: | 142 case CSSSelector::PseudoContent: |
133 case CSSSelector::PseudoHost: | 143 case CSSSelector::PseudoHost: |
134 case CSSSelector::PseudoShadow: | 144 case CSSSelector::PseudoShadow: |
(...skipping 19 matching lines...) Expand all Loading... |
154 static bool requiresSubtreeInvalidation(const CSSSelector& selector) | 164 static bool requiresSubtreeInvalidation(const CSSSelector& selector) |
155 { | 165 { |
156 if (!selector.matchesPseudoElement() && selector.match() != CSSSelector::Pse
udoClass) { | 166 if (!selector.matchesPseudoElement() && selector.match() != CSSSelector::Pse
udoClass) { |
157 ASSERT(supportsInvalidation(selector.match())); | 167 ASSERT(supportsInvalidation(selector.match())); |
158 return false; | 168 return false; |
159 } | 169 } |
160 | 170 |
161 switch (selector.pseudoType()) { | 171 switch (selector.pseudoType()) { |
162 case CSSSelector::PseudoFirstLine: | 172 case CSSSelector::PseudoFirstLine: |
163 case CSSSelector::PseudoFirstLetter: | 173 case CSSSelector::PseudoFirstLetter: |
164 case CSSSelector::PseudoCornerPresent: | |
165 case CSSSelector::PseudoDecrement: | |
166 case CSSSelector::PseudoIncrement: | |
167 case CSSSelector::PseudoHorizontal: | |
168 case CSSSelector::PseudoVertical: | |
169 case CSSSelector::PseudoStart: | |
170 case CSSSelector::PseudoEnd: | |
171 case CSSSelector::PseudoDoubleButton: | |
172 case CSSSelector::PseudoSingleButton: | |
173 case CSSSelector::PseudoNoButton: | |
174 case CSSSelector::PseudoCue: | 174 case CSSSelector::PseudoCue: |
175 case CSSSelector::PseudoFutureCue: | 175 case CSSSelector::PseudoFutureCue: |
176 case CSSSelector::PseudoPastCue: | 176 case CSSSelector::PseudoPastCue: |
177 case CSSSelector::PseudoSpatialNavigationFocus: | 177 case CSSSelector::PseudoSpatialNavigationFocus: |
178 // FIXME: Most pseudo classes/elements above can be supported and moved | 178 // FIXME: Most pseudo classes/elements above can be supported and moved |
179 // to assertSupportedPseudo(). Move on a case-by-case basis. If they | 179 // to assertSupportedPseudo(). Move on a case-by-case basis. If they |
180 // require subtree invalidation, document why. | 180 // require subtree invalidation, document why. |
181 case CSSSelector::PseudoHostContext: | 181 case CSSSelector::PseudoHostContext: |
182 // :host-context matches a shadow host, yet the simple selectors inside | 182 // :host-context matches a shadow host, yet the simple selectors inside |
183 // :host-context matches an ancestor of the shadow host. | 183 // :host-context matches an ancestor of the shadow host. |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 visitor->trace(uncommonAttributeRules); | 652 visitor->trace(uncommonAttributeRules); |
653 visitor->trace(m_classInvalidationSets); | 653 visitor->trace(m_classInvalidationSets); |
654 visitor->trace(m_attributeInvalidationSets); | 654 visitor->trace(m_attributeInvalidationSets); |
655 visitor->trace(m_idInvalidationSets); | 655 visitor->trace(m_idInvalidationSets); |
656 visitor->trace(m_pseudoInvalidationSets); | 656 visitor->trace(m_pseudoInvalidationSets); |
657 visitor->trace(m_styleInvalidator); | 657 visitor->trace(m_styleInvalidator); |
658 #endif | 658 #endif |
659 } | 659 } |
660 | 660 |
661 } // namespace blink | 661 } // namespace blink |
OLD | NEW |