| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 typedef WillBeHeapVector<RefPtrWillBeMember<CSSRuleSourceData> > RuleSourceDataL
ist; | 89 typedef WillBeHeapVector<RefPtrWillBeMember<CSSRuleSourceData> > RuleSourceDataL
ist; |
| 90 typedef WillBeHeapVector<SourceRange> SelectorRangeList; | 90 typedef WillBeHeapVector<SourceRange> SelectorRangeList; |
| 91 | 91 |
| 92 struct CSSRuleSourceData : public RefCountedWillBeGarbageCollected<CSSRuleSource
Data> { | 92 struct CSSRuleSourceData : public RefCountedWillBeGarbageCollected<CSSRuleSource
Data> { |
| 93 enum Type { | 93 enum Type { |
| 94 UNKNOWN_RULE = 0, | 94 UNKNOWN_RULE = 0, |
| 95 STYLE_RULE = 1, | 95 STYLE_RULE = 1, |
| 96 MEDIA_RULE = 3, | 96 MEDIA_RULE = 3, |
| 97 FONT_FACE_RULE = 4, | 97 FONT_FACE_RULE = 4, |
| 98 KEYFRAMES_RULE = 6, | 98 KEYFRAMES_RULE = 6, |
| 99 VIEWPORT_RULE = 7, | |
| 100 SUPPORTS_RULE = 8, | 99 SUPPORTS_RULE = 8, |
| 101 FILTER_RULE = 9 | 100 FILTER_RULE = 9 |
| 102 }; | 101 }; |
| 103 | 102 |
| 104 static PassRefPtrWillBeRawPtr<CSSRuleSourceData> create(Type type) | 103 static PassRefPtrWillBeRawPtr<CSSRuleSourceData> create(Type type) |
| 105 { | 104 { |
| 106 return adoptRefWillBeNoop(new CSSRuleSourceData(type)); | 105 return adoptRefWillBeNoop(new CSSRuleSourceData(type)); |
| 107 } | 106 } |
| 108 | 107 |
| 109 static PassRefPtrWillBeRawPtr<CSSRuleSourceData> createUnknown() | 108 static PassRefPtrWillBeRawPtr<CSSRuleSourceData> createUnknown() |
| (...skipping 27 matching lines...) Expand all Loading... |
| 137 // Only for CSSMediaRules. | 136 // Only for CSSMediaRules. |
| 138 RuleSourceDataList childRules; | 137 RuleSourceDataList childRules; |
| 139 }; | 138 }; |
| 140 | 139 |
| 141 } // namespace blink | 140 } // namespace blink |
| 142 | 141 |
| 143 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SourceRange); | 142 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SourceRange); |
| 144 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSPropertySourceData); | 143 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSPropertySourceData); |
| 145 | 144 |
| 146 #endif // CSSPropertySourceData_h | 145 #endif // CSSPropertySourceData_h |
| OLD | NEW |