OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef SVGProperty_h | 31 #ifndef SVGProperty_h |
32 #define SVGProperty_h | 32 #define SVGProperty_h |
33 | 33 |
34 #include "core/svg/properties/SVGPropertyInfo.h" | 34 #include "core/svg/properties/SVGPropertyInfo.h" |
35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
36 #include "wtf/Noncopyable.h" | 36 #include "wtf/Noncopyable.h" |
37 #include "wtf/PassRefPtr.h" | |
38 #include "wtf/RefCounted.h" | |
39 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
40 | 38 |
41 namespace blink { | 39 namespace blink { |
42 | 40 |
43 class SVGElement; | 41 class SVGElement; |
44 class SVGAnimationElement; | 42 class SVGAnimationElement; |
45 | 43 |
46 class SVGPropertyBase : public GarbageCollectedFinalized<SVGPropertyBase> { | 44 class SVGPropertyBase : public GarbageCollectedFinalized<SVGPropertyBase> { |
47 WTF_MAKE_NONCOPYABLE(SVGPropertyBase); | 45 WTF_MAKE_NONCOPYABLE(SVGPropertyBase); |
48 | 46 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // See http://crbug.com/528275 for the detail. | 99 // See http://crbug.com/528275 for the detail. |
102 UntracedMember<SVGPropertyBase> m_ownerList; | 100 UntracedMember<SVGPropertyBase> m_ownerList; |
103 }; | 101 }; |
104 | 102 |
105 #define DEFINE_SVG_PROPERTY_TYPE_CASTS(thisType)\ | 103 #define DEFINE_SVG_PROPERTY_TYPE_CASTS(thisType)\ |
106 DEFINE_TYPE_CASTS(thisType, SVGPropertyBase, value, value->type() == thisTyp
e::classType(), value.type() == thisType::classType()); | 104 DEFINE_TYPE_CASTS(thisType, SVGPropertyBase, value, value->type() == thisTyp
e::classType(), value.type() == thisType::classType()); |
107 | 105 |
108 } // namespace blink | 106 } // namespace blink |
109 | 107 |
110 #endif // SVGProperty_h | 108 #endif // SVGProperty_h |
OLD | NEW |