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

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

Issue 1958073002: Introduce :-internal-shadow-host-has-appearance pseudo class, and apply it to METER element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove null host check Created 4 years, 7 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 case CSSSelector::PseudoStart: 136 case CSSSelector::PseudoStart:
137 case CSSSelector::PseudoEnd: 137 case CSSSelector::PseudoEnd:
138 case CSSSelector::PseudoDoubleButton: 138 case CSSSelector::PseudoDoubleButton:
139 case CSSSelector::PseudoSingleButton: 139 case CSSSelector::PseudoSingleButton:
140 case CSSSelector::PseudoNoButton: 140 case CSSSelector::PseudoNoButton:
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::PseudoCue: 147 case CSSSelector::PseudoCue:
147 case CSSSelector::PseudoFutureCue: 148 case CSSSelector::PseudoFutureCue:
148 case CSSSelector::PseudoPastCue: 149 case CSSSelector::PseudoPastCue:
149 case CSSSelector::PseudoUnresolved: 150 case CSSSelector::PseudoUnresolved:
150 case CSSSelector::PseudoContent: 151 case CSSSelector::PseudoContent:
151 case CSSSelector::PseudoHost: 152 case CSSSelector::PseudoHost:
152 case CSSSelector::PseudoShadow: 153 case CSSSelector::PseudoShadow:
153 case CSSSelector::PseudoSpatialNavigationFocus: 154 case CSSSelector::PseudoSpatialNavigationFocus:
154 case CSSSelector::PseudoListBox: 155 case CSSSelector::PseudoListBox:
156 case CSSSelector::PseudoHostHasAppearance:
155 case CSSSelector::PseudoSlotted: 157 case CSSSelector::PseudoSlotted:
156 return true; 158 return true;
157 case CSSSelector::PseudoUnknown: 159 case CSSSelector::PseudoUnknown:
158 case CSSSelector::PseudoLeftPage: 160 case CSSSelector::PseudoLeftPage:
159 case CSSSelector::PseudoRightPage: 161 case CSSSelector::PseudoRightPage:
160 case CSSSelector::PseudoFirstPage: 162 case CSSSelector::PseudoFirstPage:
161 // These should not appear in StyleRule selectors. 163 // These should not appear in StyleRule selectors.
162 ASSERT_NOT_REACHED(); 164 ASSERT_NOT_REACHED();
163 return false; 165 return false;
164 default: 166 default:
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 return true; 291 return true;
290 } 292 }
291 if (selector.match() == CSSSelector::Class) { 293 if (selector.match() == CSSSelector::Class) {
292 features.classes.append(selector.value()); 294 features.classes.append(selector.value());
293 return true; 295 return true;
294 } 296 }
295 if (selector.isAttributeSelector()) { 297 if (selector.isAttributeSelector()) {
296 features.attributes.append(selector.attribute().localName()); 298 features.attributes.append(selector.attribute().localName());
297 return true; 299 return true;
298 } 300 }
299 if (selector.getPseudoType() == CSSSelector::PseudoWebKitCustomElement) { 301 if (selector.getPseudoType() == CSSSelector::PseudoWebKitCustomElement || se lector.getPseudoType() == CSSSelector::PseudoBlinkInternalElement) {
300 features.customPseudoElement = true; 302 features.customPseudoElement = true;
301 return true; 303 return true;
302 } 304 }
303 if (selector.getPseudoType() == CSSSelector::PseudoBefore || selector.getPse udoType() == CSSSelector::PseudoAfter) 305 if (selector.getPseudoType() == CSSSelector::PseudoBefore || selector.getPse udoType() == CSSSelector::PseudoAfter)
304 features.hasBeforeOrAfter = true; 306 features.hasBeforeOrAfter = true;
305 return false; 307 return false;
306 } 308 }
307 309
308 InvalidationSet* RuleFeatureSet::invalidationSetForSelector(const CSSSelector& s elector, InvalidationType type) 310 InvalidationSet* RuleFeatureSet::invalidationSetForSelector(const CSSSelector& s elector, InvalidationType type)
309 { 311 {
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 } 782 }
781 } 783 }
782 784
783 DEFINE_TRACE(RuleFeatureSet) 785 DEFINE_TRACE(RuleFeatureSet)
784 { 786 {
785 visitor->trace(siblingRules); 787 visitor->trace(siblingRules);
786 visitor->trace(uncommonAttributeRules); 788 visitor->trace(uncommonAttributeRules);
787 } 789 }
788 790
789 } // namespace blink 791 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSelector.cpp ('k') | third_party/WebKit/Source/core/css/RuleSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698