OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |