OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
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 SVGTransformListTearOff_h | 31 #ifndef SVGTransformListTearOff_h |
32 #define SVGTransformListTearOff_h | 32 #define SVGTransformListTearOff_h |
33 | 33 |
34 #include "core/svg/SVGTransformList.h" | 34 #include "core/svg/SVGTransformList.h" |
35 #include "core/svg/SVGTransformTearOff.h" | |
36 #include "core/svg/properties/SVGListPropertyTearOffHelper.h" | 35 #include "core/svg/properties/SVGListPropertyTearOffHelper.h" |
37 | 36 |
38 namespace blink { | 37 namespace blink { |
39 | 38 |
| 39 class SVGMatrixTearOff; |
| 40 class SVGTransformTearOff; |
| 41 |
40 class SVGTransformListTearOff final | 42 class SVGTransformListTearOff final |
41 : public SVGListPropertyTearOffHelper<SVGTransformListTearOff, SVGTransformL
ist> | 43 : public SVGListPropertyTearOffHelper<SVGTransformListTearOff, SVGTransformL
ist> |
42 , public ScriptWrappable { | 44 , public ScriptWrappable { |
43 DEFINE_WRAPPERTYPEINFO(); | 45 DEFINE_WRAPPERTYPEINFO(); |
44 public: | 46 public: |
45 static SVGTransformListTearOff* create(SVGTransformList* target, SVGElement*
contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& a
ttributeName = QualifiedName::null()) | 47 static SVGTransformListTearOff* create(SVGTransformList* target, SVGElement*
contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& a
ttributeName = QualifiedName::null()) |
46 { | 48 { |
47 return new SVGTransformListTearOff(target, contextElement, propertyIsAni
mVal, attributeName); | 49 return new SVGTransformListTearOff(target, contextElement, propertyIsAni
mVal, attributeName); |
48 } | 50 } |
49 | 51 |
50 ~SVGTransformListTearOff() override; | 52 ~SVGTransformListTearOff() override; |
51 | 53 |
52 SVGTransformTearOff* createSVGTransformFromMatrix(SVGMatrixTearOff*) const; | 54 SVGTransformTearOff* createSVGTransformFromMatrix(SVGMatrixTearOff*) const; |
53 SVGTransformTearOff* consolidate(ExceptionState&); | 55 SVGTransformTearOff* consolidate(ExceptionState&); |
54 | 56 |
55 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 57 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
56 | 58 |
57 private: | 59 private: |
58 SVGTransformListTearOff(SVGTransformList*, SVGElement*, PropertyIsAnimValTyp
e, const QualifiedName&); | 60 SVGTransformListTearOff(SVGTransformList*, SVGElement*, PropertyIsAnimValTyp
e, const QualifiedName&); |
59 }; | 61 }; |
60 | 62 |
61 } // namespace blink | 63 } // namespace blink |
62 | 64 |
63 #endif // SVGTransformListTearOff_h | 65 #endif // SVGTransformListTearOff_h |
OLD | NEW |