Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: third_party/WebKit/Source/core/css/RuleFeature.cpp

Issue 2229503002: Style invalidation support for :first/last/only-child. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review issue Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698