| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 Google Inc. All rights reserved. | 2 * Copyright (c) 2010 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 struct CSSRuleSourceData; | 81 struct CSSRuleSourceData; |
| 82 typedef Vector<RefPtr<CSSRuleSourceData> > RuleSourceDataList; | 82 typedef Vector<RefPtr<CSSRuleSourceData> > RuleSourceDataList; |
| 83 typedef Vector<SourceRange> SelectorRangeList; | 83 typedef Vector<SourceRange> SelectorRangeList; |
| 84 | 84 |
| 85 struct CSSRuleSourceData : public RefCounted<CSSRuleSourceData> { | 85 struct CSSRuleSourceData : public RefCounted<CSSRuleSourceData> { |
| 86 enum Type { | 86 enum Type { |
| 87 UNKNOWN_RULE = 0, | 87 UNKNOWN_RULE = 0, |
| 88 STYLE_RULE = 1, | 88 STYLE_RULE = 1, |
| 89 MEDIA_RULE = 3, | 89 MEDIA_RULE = 3, |
| 90 FONT_FACE_RULE = 4, | 90 FONT_FACE_RULE = 4, |
| 91 KEYFRAMES_RULE = 6, | |
| 92 SUPPORTS_RULE = 8, | 91 SUPPORTS_RULE = 8, |
| 93 FILTER_RULE = 9 | 92 FILTER_RULE = 9 |
| 94 }; | 93 }; |
| 95 | 94 |
| 96 static PassRefPtr<CSSRuleSourceData> create(Type type) | 95 static PassRefPtr<CSSRuleSourceData> create(Type type) |
| 97 { | 96 { |
| 98 return adoptRef(new CSSRuleSourceData(type)); | 97 return adoptRef(new CSSRuleSourceData(type)); |
| 99 } | 98 } |
| 100 | 99 |
| 101 static PassRefPtr<CSSRuleSourceData> createUnknown() | 100 static PassRefPtr<CSSRuleSourceData> createUnknown() |
| (...skipping 25 matching lines...) Expand all Loading... |
| 127 // Only for CSSMediaRules. | 126 // Only for CSSMediaRules. |
| 128 RuleSourceDataList childRules; | 127 RuleSourceDataList childRules; |
| 129 }; | 128 }; |
| 130 | 129 |
| 131 } // namespace blink | 130 } // namespace blink |
| 132 | 131 |
| 133 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SourceRange); | 132 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SourceRange); |
| 134 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSPropertySourceData); | 133 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSPropertySourceData); |
| 135 | 134 |
| 136 #endif // SKY_ENGINE_CORE_CSS_CSSPROPERTYSOURCEDATA_H_ | 135 #endif // SKY_ENGINE_CORE_CSS_CSSPROPERTYSOURCEDATA_H_ |
| OLD | NEW |