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

Side by Side Diff: sky/engine/core/dom/shadow/SelectRuleFeatureSet.cpp

Issue 696903002: Remove a lot of API surface from Element. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « sky/engine/core/dom/shadow/SelectRuleFeatureSet.h ('k') | sky/engine/core/frame/UseCounter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 20 matching lines...) Expand all
31 #include "config.h" 31 #include "config.h"
32 #include "core/dom/shadow/SelectRuleFeatureSet.h" 32 #include "core/dom/shadow/SelectRuleFeatureSet.h"
33 33
34 #include "core/css/CSSSelector.h" 34 #include "core/css/CSSSelector.h"
35 35
36 #include "wtf/BitVector.h" 36 #include "wtf/BitVector.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 SelectRuleFeatureSet::SelectRuleFeatureSet() 40 SelectRuleFeatureSet::SelectRuleFeatureSet()
41 : m_featureFlags(0)
42 { 41 {
43 } 42 }
44 43
45 void SelectRuleFeatureSet::add(const SelectRuleFeatureSet& featureSet) 44 void SelectRuleFeatureSet::add(const SelectRuleFeatureSet& featureSet)
46 { 45 {
47 m_cssRuleFeatureSet.add(featureSet.m_cssRuleFeatureSet); 46 m_cssRuleFeatureSet.add(featureSet.m_cssRuleFeatureSet);
48 m_featureFlags |= featureSet.m_featureFlags;
49 } 47 }
50 48
51 void SelectRuleFeatureSet::clear() 49 void SelectRuleFeatureSet::clear()
52 { 50 {
53 m_cssRuleFeatureSet.clear(); 51 m_cssRuleFeatureSet.clear();
54 m_featureFlags = 0;
55 } 52 }
56 53
57 void SelectRuleFeatureSet::collectFeaturesFromSelector(const CSSSelector& select or) 54 void SelectRuleFeatureSet::collectFeaturesFromSelector(const CSSSelector& select or)
58 { 55 {
59 m_cssRuleFeatureSet.collectFeaturesFromSelector(selector); 56 m_cssRuleFeatureSet.collectFeaturesFromSelector(selector);
60 } 57 }
61 58
62 bool SelectRuleFeatureSet::checkSelectorsForClassChange(const SpaceSplitString& changedClasses) const 59 bool SelectRuleFeatureSet::checkSelectorsForClassChange(const SpaceSplitString& changedClasses) const
63 { 60 {
64 unsigned changedSize = changedClasses.size(); 61 unsigned changedSize = changedClasses.size();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 99
103 // Class was removed. 100 // Class was removed.
104 if (hasSelectorForClass(oldClasses[i])) 101 if (hasSelectorForClass(oldClasses[i]))
105 return true; 102 return true;
106 } 103 }
107 return false; 104 return false;
108 } 105 }
109 106
110 } 107 }
111 108
OLDNEW
« no previous file with comments | « sky/engine/core/dom/shadow/SelectRuleFeatureSet.h ('k') | sky/engine/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698