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

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

Issue 620333002: Use invalidation sets for :invalid/:valid/:required/:optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 1 month 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 case CSSSelector::PseudoEmpty: 297 case CSSSelector::PseudoEmpty:
298 case CSSSelector::PseudoLink: 298 case CSSSelector::PseudoLink:
299 case CSSSelector::PseudoVisited: 299 case CSSSelector::PseudoVisited:
300 case CSSSelector::PseudoAutofill: 300 case CSSSelector::PseudoAutofill:
301 case CSSSelector::PseudoHover: 301 case CSSSelector::PseudoHover:
302 case CSSSelector::PseudoFocus: 302 case CSSSelector::PseudoFocus:
303 case CSSSelector::PseudoActive: 303 case CSSSelector::PseudoActive:
304 case CSSSelector::PseudoChecked: 304 case CSSSelector::PseudoChecked:
305 case CSSSelector::PseudoEnabled: 305 case CSSSelector::PseudoEnabled:
306 case CSSSelector::PseudoDisabled: 306 case CSSSelector::PseudoDisabled:
307 case CSSSelector::PseudoOptional:
308 case CSSSelector::PseudoRequired:
309 case CSSSelector::PseudoValid:
310 case CSSSelector::PseudoInvalid:
307 case CSSSelector::PseudoIndeterminate: 311 case CSSSelector::PseudoIndeterminate:
308 case CSSSelector::PseudoTarget: 312 case CSSSelector::PseudoTarget:
309 return &ensurePseudoInvalidationSet(selector.pseudoType()); 313 return &ensurePseudoInvalidationSet(selector.pseudoType());
310 default: 314 default:
311 break; 315 break;
312 } 316 }
313 } 317 }
314 return 0; 318 return 0;
315 } 319 }
316 320
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 visitor->trace(uncommonAttributeRules); 652 visitor->trace(uncommonAttributeRules);
649 visitor->trace(m_classInvalidationSets); 653 visitor->trace(m_classInvalidationSets);
650 visitor->trace(m_attributeInvalidationSets); 654 visitor->trace(m_attributeInvalidationSets);
651 visitor->trace(m_idInvalidationSets); 655 visitor->trace(m_idInvalidationSets);
652 visitor->trace(m_pseudoInvalidationSets); 656 visitor->trace(m_pseudoInvalidationSets);
653 visitor->trace(m_styleInvalidator); 657 visitor->trace(m_styleInvalidator);
654 #endif 658 #endif
655 } 659 }
656 660
657 } // namespace blink 661 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698