| 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef SelectRuleFeatureSet_h | 31 #ifndef SelectRuleFeatureSet_h |
| 32 #define SelectRuleFeatureSet_h | 32 #define SelectRuleFeatureSet_h |
| 33 | 33 |
| 34 #include "core/css/RuleFeature.h" | 34 #include "core/css/RuleFeature.h" |
| 35 #include "core/dom/Element.h" | 35 #include "core/dom/Element.h" |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 | 38 |
| 39 class Element; | |
| 40 class SpaceSplitString; | 39 class SpaceSplitString; |
| 41 | 40 |
| 42 class SelectRuleFeatureSet { | 41 class SelectRuleFeatureSet { |
| 43 DISALLOW_ALLOCATION(); | 42 DISALLOW_ALLOCATION(); |
| 44 public: | 43 public: |
| 45 SelectRuleFeatureSet(); | 44 SelectRuleFeatureSet(); |
| 46 | 45 |
| 47 void add(const SelectRuleFeatureSet&); | 46 void add(const SelectRuleFeatureSet&); |
| 48 void clear(); | 47 void clear(); |
| 49 void collectFeaturesFromSelector(const CSSSelector&); | 48 void collectFeaturesFromSelector(const CSSSelector&); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 87 |
| 89 inline bool SelectRuleFeatureSet::hasSelectorForAttribute(const AtomicString& at
tributeName) const | 88 inline bool SelectRuleFeatureSet::hasSelectorForAttribute(const AtomicString& at
tributeName) const |
| 90 { | 89 { |
| 91 ASSERT(!attributeName.isEmpty()); | 90 ASSERT(!attributeName.isEmpty()); |
| 92 return m_cssRuleFeatureSet.hasSelectorForAttribute(attributeName); | 91 return m_cssRuleFeatureSet.hasSelectorForAttribute(attributeName); |
| 93 } | 92 } |
| 94 | 93 |
| 95 } | 94 } |
| 96 | 95 |
| 97 #endif | 96 #endif |
| OLD | NEW |