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

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

Issue 1989343002: Implement :defined pseudo-class selector for Custom Elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ce-state
Patch Set: rune and dominicc review, test updated Created 4 years, 6 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 case CSSSelector::PseudoFullScreen: 141 case CSSSelector::PseudoFullScreen:
142 case CSSSelector::PseudoFullScreenAncestor: 142 case CSSSelector::PseudoFullScreenAncestor:
143 case CSSSelector::PseudoInRange: 143 case CSSSelector::PseudoInRange:
144 case CSSSelector::PseudoOutOfRange: 144 case CSSSelector::PseudoOutOfRange:
145 case CSSSelector::PseudoWebKitCustomElement: 145 case CSSSelector::PseudoWebKitCustomElement:
146 case CSSSelector::PseudoBlinkInternalElement: 146 case CSSSelector::PseudoBlinkInternalElement:
147 case CSSSelector::PseudoCue: 147 case CSSSelector::PseudoCue:
148 case CSSSelector::PseudoFutureCue: 148 case CSSSelector::PseudoFutureCue:
149 case CSSSelector::PseudoPastCue: 149 case CSSSelector::PseudoPastCue:
150 case CSSSelector::PseudoUnresolved: 150 case CSSSelector::PseudoUnresolved:
151 case CSSSelector::PseudoDefined:
151 case CSSSelector::PseudoContent: 152 case CSSSelector::PseudoContent:
152 case CSSSelector::PseudoHost: 153 case CSSSelector::PseudoHost:
153 case CSSSelector::PseudoShadow: 154 case CSSSelector::PseudoShadow:
154 case CSSSelector::PseudoSpatialNavigationFocus: 155 case CSSSelector::PseudoSpatialNavigationFocus:
155 case CSSSelector::PseudoListBox: 156 case CSSSelector::PseudoListBox:
156 case CSSSelector::PseudoHostHasAppearance: 157 case CSSSelector::PseudoHostHasAppearance:
157 case CSSSelector::PseudoSlotted: 158 case CSSSelector::PseudoSlotted:
158 return true; 159 return true;
159 case CSSSelector::PseudoUnknown: 160 case CSSSelector::PseudoUnknown:
160 case CSSSelector::PseudoLeftPage: 161 case CSSSelector::PseudoLeftPage:
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 case CSSSelector::PseudoValid: 339 case CSSSelector::PseudoValid:
339 case CSSSelector::PseudoInvalid: 340 case CSSSelector::PseudoInvalid:
340 case CSSSelector::PseudoIndeterminate: 341 case CSSSelector::PseudoIndeterminate:
341 case CSSSelector::PseudoTarget: 342 case CSSSelector::PseudoTarget:
342 case CSSSelector::PseudoLang: 343 case CSSSelector::PseudoLang:
343 case CSSSelector::PseudoFullScreen: 344 case CSSSelector::PseudoFullScreen:
344 case CSSSelector::PseudoFullScreenAncestor: 345 case CSSSelector::PseudoFullScreenAncestor:
345 case CSSSelector::PseudoInRange: 346 case CSSSelector::PseudoInRange:
346 case CSSSelector::PseudoOutOfRange: 347 case CSSSelector::PseudoOutOfRange:
347 case CSSSelector::PseudoUnresolved: 348 case CSSSelector::PseudoUnresolved:
349 case CSSSelector::PseudoDefined:
348 return &ensurePseudoInvalidationSet(selector.getPseudoType(), type); 350 return &ensurePseudoInvalidationSet(selector.getPseudoType(), type);
349 default: 351 default:
350 break; 352 break;
351 } 353 }
352 } 354 }
353 return nullptr; 355 return nullptr;
354 } 356 }
355 357
356 // Given a rule, update the descendant invalidation sets for the features found 358 // Given a rule, update the descendant invalidation sets for the features found
357 // in its selector. The first step is to extract the features from the rightmost 359 // in its selector. The first step is to extract the features from the rightmost
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 } 784 }
783 } 785 }
784 786
785 DEFINE_TRACE(RuleFeatureSet) 787 DEFINE_TRACE(RuleFeatureSet)
786 { 788 {
787 visitor->trace(siblingRules); 789 visitor->trace(siblingRules);
788 visitor->trace(uncommonAttributeRules); 790 visitor->trace(uncommonAttributeRules);
789 } 791 }
790 792
791 } // namespace blink 793 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSelector.cpp ('k') | third_party/WebKit/Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698