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

Side by Side Diff: Source/core/dom/shadow/SelectRuleFeatureSet.cpp

Issue 129633003: Add a first pass of a class descendant invalidator, and a containing RuleSetAnalyzer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Implement tree walk for descendant class invalidation. Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 void SelectRuleFeatureSet::clear() 49 void SelectRuleFeatureSet::clear()
50 { 50 {
51 m_cssRuleFeatureSet.clear(); 51 m_cssRuleFeatureSet.clear();
52 m_featureFlags = 0; 52 m_featureFlags = 0;
53 } 53 }
54 54
55 void SelectRuleFeatureSet::collectFeaturesFromSelector(const CSSSelector* select or) 55 void SelectRuleFeatureSet::collectFeaturesFromSelector(const CSSSelector* select or)
56 { 56 {
57 m_cssRuleFeatureSet.collectFeaturesFromSelector(selector); 57 m_cssRuleFeatureSet.collectFeaturesFromSelector(selector, 0);
58 58
59 switch (selector->pseudoType()) { 59 switch (selector->pseudoType()) {
60 case CSSSelector::PseudoChecked: 60 case CSSSelector::PseudoChecked:
61 setSelectRuleFeature(AffectedSelectorChecked); 61 setSelectRuleFeature(AffectedSelectorChecked);
62 break; 62 break;
63 case CSSSelector::PseudoEnabled: 63 case CSSSelector::PseudoEnabled:
64 setSelectRuleFeature(AffectedSelectorEnabled); 64 setSelectRuleFeature(AffectedSelectorEnabled);
65 break; 65 break;
66 case CSSSelector::PseudoDisabled: 66 case CSSSelector::PseudoDisabled:
67 setSelectRuleFeature(AffectedSelectorDisabled); 67 setSelectRuleFeature(AffectedSelectorDisabled);
(...skipping 10 matching lines...) Expand all
78 case CSSSelector::PseudoVisited: 78 case CSSSelector::PseudoVisited:
79 setSelectRuleFeature(AffectedSelectorVisited); 79 setSelectRuleFeature(AffectedSelectorVisited);
80 break; 80 break;
81 default: 81 default:
82 break; 82 break;
83 } 83 }
84 } 84 }
85 85
86 } 86 }
87 87
OLDNEW
« no previous file with comments | « Source/core/dom/shadow/SelectRuleFeatureSet.h ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698