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

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

Issue 1280423002: CSS4: Implement :placeholder-shown pseudo class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated testcase Created 5 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 case CSSSelector::PseudoHover: 94 case CSSSelector::PseudoHover:
95 case CSSSelector::PseudoDrag: 95 case CSSSelector::PseudoDrag:
96 case CSSSelector::PseudoFocus: 96 case CSSSelector::PseudoFocus:
97 case CSSSelector::PseudoActive: 97 case CSSSelector::PseudoActive:
98 case CSSSelector::PseudoChecked: 98 case CSSSelector::PseudoChecked:
99 case CSSSelector::PseudoEnabled: 99 case CSSSelector::PseudoEnabled:
100 case CSSSelector::PseudoFullPageMedia: 100 case CSSSelector::PseudoFullPageMedia:
101 case CSSSelector::PseudoDefault: 101 case CSSSelector::PseudoDefault:
102 case CSSSelector::PseudoDisabled: 102 case CSSSelector::PseudoDisabled:
103 case CSSSelector::PseudoOptional: 103 case CSSSelector::PseudoOptional:
104 case CSSSelector::PseudoPlaceholderShown:
104 case CSSSelector::PseudoRequired: 105 case CSSSelector::PseudoRequired:
105 case CSSSelector::PseudoReadOnly: 106 case CSSSelector::PseudoReadOnly:
106 case CSSSelector::PseudoReadWrite: 107 case CSSSelector::PseudoReadWrite:
107 case CSSSelector::PseudoValid: 108 case CSSSelector::PseudoValid:
108 case CSSSelector::PseudoInvalid: 109 case CSSSelector::PseudoInvalid:
109 case CSSSelector::PseudoIndeterminate: 110 case CSSSelector::PseudoIndeterminate:
110 case CSSSelector::PseudoTarget: 111 case CSSSelector::PseudoTarget:
111 case CSSSelector::PseudoBefore: 112 case CSSSelector::PseudoBefore:
112 case CSSSelector::PseudoAfter: 113 case CSSSelector::PseudoAfter:
113 case CSSSelector::PseudoBackdrop: 114 case CSSSelector::PseudoBackdrop:
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 case CSSSelector::PseudoVisited: 252 case CSSSelector::PseudoVisited:
252 case CSSSelector::PseudoAnyLink: 253 case CSSSelector::PseudoAnyLink:
253 case CSSSelector::PseudoAutofill: 254 case CSSSelector::PseudoAutofill:
254 case CSSSelector::PseudoHover: 255 case CSSSelector::PseudoHover:
255 case CSSSelector::PseudoFocus: 256 case CSSSelector::PseudoFocus:
256 case CSSSelector::PseudoActive: 257 case CSSSelector::PseudoActive:
257 case CSSSelector::PseudoChecked: 258 case CSSSelector::PseudoChecked:
258 case CSSSelector::PseudoEnabled: 259 case CSSSelector::PseudoEnabled:
259 case CSSSelector::PseudoDisabled: 260 case CSSSelector::PseudoDisabled:
260 case CSSSelector::PseudoOptional: 261 case CSSSelector::PseudoOptional:
262 case CSSSelector::PseudoPlaceholderShown:
261 case CSSSelector::PseudoRequired: 263 case CSSSelector::PseudoRequired:
262 case CSSSelector::PseudoValid: 264 case CSSSelector::PseudoValid:
263 case CSSSelector::PseudoInvalid: 265 case CSSSelector::PseudoInvalid:
264 case CSSSelector::PseudoIndeterminate: 266 case CSSSelector::PseudoIndeterminate:
265 case CSSSelector::PseudoTarget: 267 case CSSSelector::PseudoTarget:
266 return &ensurePseudoInvalidationSet(selector.pseudoType()); 268 return &ensurePseudoInvalidationSet(selector.pseudoType());
267 default: 269 default:
268 break; 270 break;
269 } 271 }
270 } 272 }
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 visitor->trace(siblingRules); 584 visitor->trace(siblingRules);
583 visitor->trace(uncommonAttributeRules); 585 visitor->trace(uncommonAttributeRules);
584 visitor->trace(m_classInvalidationSets); 586 visitor->trace(m_classInvalidationSets);
585 visitor->trace(m_attributeInvalidationSets); 587 visitor->trace(m_attributeInvalidationSets);
586 visitor->trace(m_idInvalidationSets); 588 visitor->trace(m_idInvalidationSets);
587 visitor->trace(m_pseudoInvalidationSets); 589 visitor->trace(m_pseudoInvalidationSets);
588 #endif 590 #endif
589 } 591 }
590 592
591 } // namespace blink 593 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698