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 26 matching lines...) Expand all Loading... |
37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
38 #include "platform/transforms/AffineTransform.h" | 38 #include "platform/transforms/AffineTransform.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class SVGTransformTearOff; | 42 class SVGTransformTearOff; |
43 | 43 |
44 // SVGMatrixTearOff wraps a AffineTransform for Javascript. | 44 // SVGMatrixTearOff wraps a AffineTransform for Javascript. |
45 // Its instance can either hold a static value, or this can be teared off from |
SVGTransform.matrix|. | 45 // Its instance can either hold a static value, or this can be teared off from |
SVGTransform.matrix|. |
46 // This does not derive from SVGPropertyTearOff, as its instances are never tied
to an animated property nor an XML attribute. | 46 // This does not derive from SVGPropertyTearOff, as its instances are never tied
to an animated property nor an XML attribute. |
47 class CORE_EXPORT SVGMatrixTearOff final : public GarbageCollected<SVGMatrixTear
Off>, public ScriptWrappable { | 47 class CORE_EXPORT SVGMatrixTearOff final : public GarbageCollectedFinalized<SVGM
atrixTearOff>, public ScriptWrappable { |
48 DEFINE_WRAPPERTYPEINFO(); | 48 DEFINE_WRAPPERTYPEINFO(); |
49 public: | 49 public: |
50 static SVGMatrixTearOff* create(const AffineTransform& value) | 50 static SVGMatrixTearOff* create(const AffineTransform& value) |
51 { | 51 { |
52 return new SVGMatrixTearOff(value); | 52 return new SVGMatrixTearOff(value); |
53 } | 53 } |
54 | 54 |
55 static SVGMatrixTearOff* create(SVGTransformTearOff* target) | 55 static SVGMatrixTearOff* create(SVGTransformTearOff* target) |
56 { | 56 { |
57 return new SVGMatrixTearOff(target); | 57 return new SVGMatrixTearOff(target); |
58 } | 58 } |
59 | 59 |
| 60 ~SVGMatrixTearOff(); |
| 61 |
60 double a() { return value().a(); } | 62 double a() { return value().a(); } |
61 double b() { return value().b(); } | 63 double b() { return value().b(); } |
62 double c() { return value().c(); } | 64 double c() { return value().c(); } |
63 double d() { return value().d(); } | 65 double d() { return value().d(); } |
64 double e() { return value().e(); } | 66 double e() { return value().e(); } |
65 double f() { return value().f(); } | 67 double f() { return value().f(); } |
66 | 68 |
67 void setA(double, ExceptionState&); | 69 void setA(double, ExceptionState&); |
68 void setB(double, ExceptionState&); | 70 void setB(double, ExceptionState&); |
69 void setC(double, ExceptionState&); | 71 void setC(double, ExceptionState&); |
(...skipping 27 matching lines...) Expand all Loading... |
97 void commitChange(); | 99 void commitChange(); |
98 | 100 |
99 AffineTransform m_staticValue; | 101 AffineTransform m_staticValue; |
100 | 102 |
101 Member<SVGTransformTearOff> m_contextTransform; | 103 Member<SVGTransformTearOff> m_contextTransform; |
102 }; | 104 }; |
103 | 105 |
104 } // namespace blink | 106 } // namespace blink |
105 | 107 |
106 #endif // SVGMatrixTearOff_h | 108 #endif // SVGMatrixTearOff_h |
OLD | NEW |