| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 CHARSET_RULE, | 92 CHARSET_RULE, |
| 93 IMPORT_RULE, | 93 IMPORT_RULE, |
| 94 MEDIA_RULE, | 94 MEDIA_RULE, |
| 95 FONT_FACE_RULE, | 95 FONT_FACE_RULE, |
| 96 PAGE_RULE, | 96 PAGE_RULE, |
| 97 KEYFRAMES_RULE, | 97 KEYFRAMES_RULE, |
| 98 REGION_RULE, | 98 REGION_RULE, |
| 99 HOST_RULE, | 99 HOST_RULE, |
| 100 VIEWPORT_RULE, | 100 VIEWPORT_RULE, |
| 101 SUPPORTS_RULE, | 101 SUPPORTS_RULE, |
| 102 #if ENABLE(CSS_SHADERS) | |
| 103 FILTER_RULE | 102 FILTER_RULE |
| 104 #endif | |
| 105 }; | 103 }; |
| 106 | 104 |
| 107 static PassRefPtr<CSSRuleSourceData> create(Type type) | 105 static PassRefPtr<CSSRuleSourceData> create(Type type) |
| 108 { | 106 { |
| 109 return adoptRef(new CSSRuleSourceData(type)); | 107 return adoptRef(new CSSRuleSourceData(type)); |
| 110 } | 108 } |
| 111 | 109 |
| 112 static PassRefPtr<CSSRuleSourceData> createUnknown() | 110 static PassRefPtr<CSSRuleSourceData> createUnknown() |
| 113 { | 111 { |
| 114 return adoptRef(new CSSRuleSourceData(UNKNOWN_RULE)); | 112 return adoptRef(new CSSRuleSourceData(UNKNOWN_RULE)); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 135 // Only for CSSStyleRules, CSSFontFaceRules, and CSSPageRules. | 133 // Only for CSSStyleRules, CSSFontFaceRules, and CSSPageRules. |
| 136 RefPtr<CSSStyleSourceData> styleSourceData; | 134 RefPtr<CSSStyleSourceData> styleSourceData; |
| 137 | 135 |
| 138 // Only for CSSMediaRules. | 136 // Only for CSSMediaRules. |
| 139 RuleSourceDataList childRules; | 137 RuleSourceDataList childRules; |
| 140 }; | 138 }; |
| 141 | 139 |
| 142 } // namespace WebCore | 140 } // namespace WebCore |
| 143 | 141 |
| 144 #endif // CSSPropertySourceData_h | 142 #endif // CSSPropertySourceData_h |
| OLD | NEW |