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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 switch (selector.pseudoType()) { | 188 switch (selector.pseudoType()) { |
189 case CSSSelector::PseudoFirstLine: | 189 case CSSSelector::PseudoFirstLine: |
190 case CSSSelector::PseudoFirstLetter: | 190 case CSSSelector::PseudoFirstLetter: |
191 // FIXME: Most pseudo classes/elements above can be supported and moved | 191 // FIXME: Most pseudo classes/elements above can be supported and moved |
192 // to assertSupportedPseudo(). Move on a case-by-case basis. If they | 192 // to assertSupportedPseudo(). Move on a case-by-case basis. If they |
193 // require subtree invalidation, document why. | 193 // require subtree invalidation, document why. |
194 case CSSSelector::PseudoHostContext: | 194 case CSSSelector::PseudoHostContext: |
195 // :host-context matches a shadow host, yet the simple selectors inside | 195 // :host-context matches a shadow host, yet the simple selectors inside |
196 // :host-context matches an ancestor of the shadow host. | 196 // :host-context matches an ancestor of the shadow host. |
| 197 case CSSSelector::PseudoSlotted: |
| 198 // TODO(kochi): This recalculates a bit more than necessary. Find out a
way |
| 199 // to avoid unnecessary recalculation. |
197 return true; | 200 return true; |
198 default: | 201 default: |
199 ASSERT(supportsInvalidation(selector.pseudoType())); | 202 ASSERT(supportsInvalidation(selector.pseudoType())); |
200 return false; | 203 return false; |
201 } | 204 } |
202 } | 205 } |
203 | 206 |
204 template<class Map> | 207 template<class Map> |
205 InvalidationData& ensureInvalidationData(Map& map, const typename Map::KeyType&
key) | 208 InvalidationData& ensureInvalidationData(Map& map, const typename Map::KeyType&
key) |
206 { | 209 { |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 | 677 |
675 DEFINE_TRACE(RuleFeatureSet) | 678 DEFINE_TRACE(RuleFeatureSet) |
676 { | 679 { |
677 #if ENABLE(OILPAN) | 680 #if ENABLE(OILPAN) |
678 visitor->trace(siblingRules); | 681 visitor->trace(siblingRules); |
679 visitor->trace(uncommonAttributeRules); | 682 visitor->trace(uncommonAttributeRules); |
680 #endif | 683 #endif |
681 } | 684 } |
682 | 685 |
683 } // namespace blink | 686 } // namespace blink |
OLD | NEW |