| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 bool parsedOk; | 68 bool parsedOk; |
| 69 SourceRange range; | 69 SourceRange range; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 struct CSSStyleSourceData : public RefCountedWillBeGarbageCollected<CSSStyleSour
ceData> { | 72 struct CSSStyleSourceData : public RefCountedWillBeGarbageCollected<CSSStyleSour
ceData> { |
| 73 static PassRefPtrWillBeRawPtr<CSSStyleSourceData> create() | 73 static PassRefPtrWillBeRawPtr<CSSStyleSourceData> create() |
| 74 { | 74 { |
| 75 return adoptRefWillBeNoop(new CSSStyleSourceData()); | 75 return adoptRefWillBeNoop(new CSSStyleSourceData()); |
| 76 } | 76 } |
| 77 | 77 |
| 78 DEFINE_INLINE_TRACE() { visitor->trace(propertyData); } | 78 DEFINE_INLINE_TRACE() |
| 79 { |
| 80 #if ENABLE(OILPAN) |
| 81 visitor->trace(propertyData); |
| 82 #endif |
| 83 } |
| 79 | 84 |
| 80 WillBeHeapVector<CSSPropertySourceData> propertyData; | 85 WillBeHeapVector<CSSPropertySourceData> propertyData; |
| 81 }; | 86 }; |
| 82 | 87 |
| 83 struct CSSMediaQueryExpSourceData { | 88 struct CSSMediaQueryExpSourceData { |
| 84 ALLOW_ONLY_INLINE_ALLOCATION(); | 89 ALLOW_ONLY_INLINE_ALLOCATION(); |
| 85 public: | 90 public: |
| 86 CSSMediaQueryExpSourceData(const SourceRange& valueRange) | 91 CSSMediaQueryExpSourceData(const SourceRange& valueRange) |
| 87 : valueRange(valueRange) { } | 92 : valueRange(valueRange) { } |
| 88 | 93 |
| 89 DEFINE_INLINE_TRACE() { visitor->trace(valueRange); } | 94 DEFINE_INLINE_TRACE() { visitor->trace(valueRange); } |
| 90 | 95 |
| 91 SourceRange valueRange; | 96 SourceRange valueRange; |
| 92 }; | 97 }; |
| 93 | 98 |
| 94 struct CSSMediaQuerySourceData : public RefCountedWillBeGarbageCollected<CSSMedi
aQuerySourceData> { | 99 struct CSSMediaQuerySourceData : public RefCountedWillBeGarbageCollected<CSSMedi
aQuerySourceData> { |
| 95 static PassRefPtrWillBeRawPtr<CSSMediaQuerySourceData> create() | 100 static PassRefPtrWillBeRawPtr<CSSMediaQuerySourceData> create() |
| 96 { | 101 { |
| 97 return adoptRefWillBeNoop(new CSSMediaQuerySourceData()); | 102 return adoptRefWillBeNoop(new CSSMediaQuerySourceData()); |
| 98 } | 103 } |
| 99 | 104 |
| 100 DEFINE_INLINE_TRACE() { visitor->trace(expData); } | 105 DEFINE_INLINE_TRACE() |
| 106 { |
| 107 #if ENABLE(OILPAN) |
| 108 visitor->trace(expData); |
| 109 #endif |
| 110 } |
| 101 | 111 |
| 102 WillBeHeapVector<CSSMediaQueryExpSourceData> expData; | 112 WillBeHeapVector<CSSMediaQueryExpSourceData> expData; |
| 103 }; | 113 }; |
| 104 | 114 |
| 105 struct CSSMediaSourceData : public RefCountedWillBeGarbageCollected<CSSMediaSour
ceData> { | 115 struct CSSMediaSourceData : public RefCountedWillBeGarbageCollected<CSSMediaSour
ceData> { |
| 106 static PassRefPtrWillBeRawPtr<CSSMediaSourceData> create() | 116 static PassRefPtrWillBeRawPtr<CSSMediaSourceData> create() |
| 107 { | 117 { |
| 108 return adoptRefWillBeNoop(new CSSMediaSourceData()); | 118 return adoptRefWillBeNoop(new CSSMediaSourceData()); |
| 109 } | 119 } |
| 110 | 120 |
| 111 DEFINE_INLINE_TRACE() { visitor->trace(queryData); } | 121 DEFINE_INLINE_TRACE() |
| 122 { |
| 123 #if ENABLE(OILPAN) |
| 124 visitor->trace(queryData); |
| 125 #endif |
| 126 } |
| 112 | 127 |
| 113 WillBeHeapVector<RefPtrWillBeMember<CSSMediaQuerySourceData>> queryData; | 128 WillBeHeapVector<RefPtrWillBeMember<CSSMediaQuerySourceData>> queryData; |
| 114 }; | 129 }; |
| 115 | 130 |
| 116 struct CSSRuleSourceData; | 131 struct CSSRuleSourceData; |
| 117 typedef WillBeHeapVector<RefPtrWillBeMember<CSSRuleSourceData>> RuleSourceDataLi
st; | 132 typedef WillBeHeapVector<RefPtrWillBeMember<CSSRuleSourceData>> RuleSourceDataLi
st; |
| 118 typedef WillBeHeapVector<SourceRange> SelectorRangeList; | 133 typedef WillBeHeapVector<SourceRange> SelectorRangeList; |
| 119 | 134 |
| 120 struct CSSRuleSourceData : public RefCountedWillBeGarbageCollected<CSSRuleSource
Data> { | 135 struct CSSRuleSourceData : public RefCountedWillBeGarbageCollected<CSSRuleSource
Data> { |
| 121 static PassRefPtrWillBeRawPtr<CSSRuleSourceData> create(StyleRule::Type type
) | 136 static PassRefPtrWillBeRawPtr<CSSRuleSourceData> create(StyleRule::Type type
) |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 RefPtrWillBeMember<CSSMediaSourceData> mediaSourceData; | 170 RefPtrWillBeMember<CSSMediaSourceData> mediaSourceData; |
| 156 }; | 171 }; |
| 157 | 172 |
| 158 } // namespace blink | 173 } // namespace blink |
| 159 | 174 |
| 160 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SourceRange); | 175 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::SourceRange); |
| 161 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSPropertySourceData); | 176 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSPropertySourceData); |
| 162 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSMediaQueryExpSourceData); | 177 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSMediaQueryExpSourceData); |
| 163 | 178 |
| 164 #endif // CSSPropertySourceData_h | 179 #endif // CSSPropertySourceData_h |
| OLD | NEW |