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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 struct CSSRuleSourceData : public RefCounted<CSSRuleSourceData> { | 87 struct CSSRuleSourceData : public RefCounted<CSSRuleSourceData> { |
88 enum Type { | 88 enum Type { |
89 UNKNOWN_RULE, | 89 UNKNOWN_RULE, |
90 STYLE_RULE, | 90 STYLE_RULE, |
91 CHARSET_RULE, | 91 CHARSET_RULE, |
92 IMPORT_RULE, | 92 IMPORT_RULE, |
93 MEDIA_RULE, | 93 MEDIA_RULE, |
94 FONT_FACE_RULE, | 94 FONT_FACE_RULE, |
95 PAGE_RULE, | 95 PAGE_RULE, |
96 KEYFRAMES_RULE, | 96 KEYFRAMES_RULE, |
97 REGION_RULE, | |
98 VIEWPORT_RULE, | 97 VIEWPORT_RULE, |
99 SUPPORTS_RULE, | 98 SUPPORTS_RULE, |
100 FILTER_RULE | 99 FILTER_RULE |
101 }; | 100 }; |
102 | 101 |
103 static PassRefPtr<CSSRuleSourceData> create(Type type) | 102 static PassRefPtr<CSSRuleSourceData> create(Type type) |
104 { | 103 { |
105 return adoptRef(new CSSRuleSourceData(type)); | 104 return adoptRef(new CSSRuleSourceData(type)); |
106 } | 105 } |
107 | 106 |
(...skipping 23 matching lines...) Expand all Loading... |
131 // Only for CSSStyleRules, CSSFontFaceRules, and CSSPageRules. | 130 // Only for CSSStyleRules, CSSFontFaceRules, and CSSPageRules. |
132 RefPtr<CSSStyleSourceData> styleSourceData; | 131 RefPtr<CSSStyleSourceData> styleSourceData; |
133 | 132 |
134 // Only for CSSMediaRules. | 133 // Only for CSSMediaRules. |
135 RuleSourceDataList childRules; | 134 RuleSourceDataList childRules; |
136 }; | 135 }; |
137 | 136 |
138 } // namespace WebCore | 137 } // namespace WebCore |
139 | 138 |
140 #endif // CSSPropertySourceData_h | 139 #endif // CSSPropertySourceData_h |
OLD | NEW |