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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 { | 312 { |
313 if (selector.match() == CSSSelector::Class) | 313 if (selector.match() == CSSSelector::Class) |
314 return &ensureClassInvalidationSet(selector.value(), type); | 314 return &ensureClassInvalidationSet(selector.value(), type); |
315 if (selector.isAttributeSelector()) | 315 if (selector.isAttributeSelector()) |
316 return &ensureAttributeInvalidationSet(selector.attribute().localName(),
type); | 316 return &ensureAttributeInvalidationSet(selector.attribute().localName(),
type); |
317 if (selector.match() == CSSSelector::Id) | 317 if (selector.match() == CSSSelector::Id) |
318 return &ensureIdInvalidationSet(selector.value(), type); | 318 return &ensureIdInvalidationSet(selector.value(), type); |
319 if (selector.match() == CSSSelector::PseudoClass) { | 319 if (selector.match() == CSSSelector::PseudoClass) { |
320 switch (selector.getPseudoType()) { | 320 switch (selector.getPseudoType()) { |
321 case CSSSelector::PseudoEmpty: | 321 case CSSSelector::PseudoEmpty: |
| 322 case CSSSelector::PseudoFirstChild: |
| 323 case CSSSelector::PseudoLastChild: |
| 324 case CSSSelector::PseudoOnlyChild: |
322 case CSSSelector::PseudoLink: | 325 case CSSSelector::PseudoLink: |
323 case CSSSelector::PseudoVisited: | 326 case CSSSelector::PseudoVisited: |
324 case CSSSelector::PseudoAnyLink: | 327 case CSSSelector::PseudoAnyLink: |
325 case CSSSelector::PseudoAutofill: | 328 case CSSSelector::PseudoAutofill: |
326 case CSSSelector::PseudoHover: | 329 case CSSSelector::PseudoHover: |
327 case CSSSelector::PseudoDrag: | 330 case CSSSelector::PseudoDrag: |
328 case CSSSelector::PseudoFocus: | 331 case CSSSelector::PseudoFocus: |
329 case CSSSelector::PseudoActive: | 332 case CSSSelector::PseudoActive: |
330 case CSSSelector::PseudoChecked: | 333 case CSSSelector::PseudoChecked: |
331 case CSSSelector::PseudoEnabled: | 334 case CSSSelector::PseudoEnabled: |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 addFeaturesToInvalidationSet(universalSet.ensureSiblingDescendants(), de
scendantFeatures); | 879 addFeaturesToInvalidationSet(universalSet.ensureSiblingDescendants(), de
scendantFeatures); |
877 } | 880 } |
878 | 881 |
879 DEFINE_TRACE(RuleFeatureSet) | 882 DEFINE_TRACE(RuleFeatureSet) |
880 { | 883 { |
881 visitor->trace(siblingRules); | 884 visitor->trace(siblingRules); |
882 visitor->trace(uncommonAttributeRules); | 885 visitor->trace(uncommonAttributeRules); |
883 } | 886 } |
884 | 887 |
885 } // namespace blink | 888 } // namespace blink |
OLD | NEW |