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

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, 2 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 return &ensureIdInvalidationSet(selector.value()); 296 return &ensureIdInvalidationSet(selector.value());
297 if (selector.match() == CSSSelector::PseudoClass) { 297 if (selector.match() == CSSSelector::PseudoClass) {
298 switch (selector.pseudoType()) { 298 switch (selector.pseudoType()) {
299 case CSSSelector::PseudoEmpty: 299 case CSSSelector::PseudoEmpty:
300 case CSSSelector::PseudoHover: 300 case CSSSelector::PseudoHover:
301 case CSSSelector::PseudoActive: 301 case CSSSelector::PseudoActive:
302 case CSSSelector::PseudoFocus: 302 case CSSSelector::PseudoFocus:
303 case CSSSelector::PseudoChecked: 303 case CSSSelector::PseudoChecked:
304 case CSSSelector::PseudoEnabled: 304 case CSSSelector::PseudoEnabled:
305 case CSSSelector::PseudoDisabled: 305 case CSSSelector::PseudoDisabled:
306 case CSSSelector::PseudoOptional:
307 case CSSSelector::PseudoRequired:
308 case CSSSelector::PseudoValid:
309 case CSSSelector::PseudoInvalid:
306 case CSSSelector::PseudoIndeterminate: 310 case CSSSelector::PseudoIndeterminate:
307 case CSSSelector::PseudoLink: 311 case CSSSelector::PseudoLink:
308 case CSSSelector::PseudoTarget: 312 case CSSSelector::PseudoTarget:
309 case CSSSelector::PseudoVisited: 313 case CSSSelector::PseudoVisited:
310 return &ensurePseudoInvalidationSet(selector.pseudoType()); 314 return &ensurePseudoInvalidationSet(selector.pseudoType());
311 default: 315 default:
312 break; 316 break;
313 } 317 }
314 } 318 }
315 return 0; 319 return 0;
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 visitor->trace(uncommonAttributeRules); 640 visitor->trace(uncommonAttributeRules);
637 visitor->trace(m_classInvalidationSets); 641 visitor->trace(m_classInvalidationSets);
638 visitor->trace(m_attributeInvalidationSets); 642 visitor->trace(m_attributeInvalidationSets);
639 visitor->trace(m_idInvalidationSets); 643 visitor->trace(m_idInvalidationSets);
640 visitor->trace(m_pseudoInvalidationSets); 644 visitor->trace(m_pseudoInvalidationSets);
641 visitor->trace(m_styleInvalidator); 645 visitor->trace(m_styleInvalidator);
642 #endif 646 #endif
643 } 647 }
644 648
645 } // namespace blink 649 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698