OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef StyleFilterData_h | 26 #ifndef StyleFilterData_h |
27 #define StyleFilterData_h | 27 #define StyleFilterData_h |
28 | 28 |
29 #include "platform/graphics/filters/FilterOperations.h" | 29 #include "platform/graphics/filters/FilterOperations.h" |
30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
31 #include "wtf/PassRefPtr.h" | |
32 #include "wtf/RefCounted.h" | |
33 | 31 |
34 namespace blink { | 32 namespace blink { |
35 | 33 |
36 // FIXME: Oilpan: resorting to RefCountedGarbageCollected<> here so as to suppor
t | 34 class StyleFilterData final : public GarbageCollected<StyleFilterData> { |
37 // DataRef<StyleFilterData> uses. Once/if DataRef<> is able to move away from | |
38 // relying on RefPtr<>, switch to GarbageCollected<>. | |
39 class StyleFilterData final : public RefCountedGarbageCollected<StyleFilterData>
{ | |
40 public: | 35 public: |
41 static StyleFilterData* create() | 36 static StyleFilterData* create() |
42 { | 37 { |
43 return new StyleFilterData; | 38 return new StyleFilterData; |
44 } | 39 } |
45 | 40 |
46 StyleFilterData* copy() const | 41 StyleFilterData* copy() const |
47 { | 42 { |
48 return new StyleFilterData(*this); | 43 return new StyleFilterData(*this); |
49 } | 44 } |
(...skipping 11 matching lines...) Expand all Loading... |
61 | 56 |
62 FilterOperations m_operations; | 57 FilterOperations m_operations; |
63 | 58 |
64 private: | 59 private: |
65 StyleFilterData(); | 60 StyleFilterData(); |
66 explicit StyleFilterData(const StyleFilterData&); | 61 explicit StyleFilterData(const StyleFilterData&); |
67 }; | 62 }; |
68 | 63 |
69 } // namespace blink | 64 } // namespace blink |
70 | 65 |
71 | |
72 #endif // StyleFilterData_h | 66 #endif // StyleFilterData_h |
OLD | NEW |