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 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class SVGMatrixTearOff; | 40 class SVGMatrixTearOff; |
41 | 41 |
42 class SVGPointTearOff : public SVGPropertyTearOff<SVGPoint>, | 42 class SVGPointTearOff : public SVGPropertyTearOff<SVGPoint>, |
43 public ScriptWrappable { | 43 public ScriptWrappable { |
44 DEFINE_WRAPPERTYPEINFO(); | 44 DEFINE_WRAPPERTYPEINFO(); |
45 | 45 |
46 public: | 46 public: |
47 static SVGPointTearOff* Create( | 47 static SVGPointTearOff* Create(SVGPoint* target, |
48 SVGPoint* target, | 48 SVGElement* context_element, |
49 SVGElement* context_element, | 49 PropertyIsAnimValType property_is_anim_val, |
50 PropertyIsAnimValType property_is_anim_val, | 50 const QualifiedName& attribute_name) { |
51 const QualifiedName& attribute_name = QualifiedName::Null()) { | |
52 return new SVGPointTearOff(target, context_element, property_is_anim_val, | 51 return new SVGPointTearOff(target, context_element, property_is_anim_val, |
53 attribute_name); | 52 attribute_name); |
54 } | 53 } |
| 54 static SVGPointTearOff* CreateDetached(const FloatPoint&); |
55 | 55 |
56 void setX(float, ExceptionState&); | 56 void setX(float, ExceptionState&); |
57 void setY(float, ExceptionState&); | 57 void setY(float, ExceptionState&); |
58 float x() { return Target()->X(); } | 58 float x() { return Target()->X(); } |
59 float y() { return Target()->Y(); } | 59 float y() { return Target()->Y(); } |
60 | 60 |
61 SVGPointTearOff* matrixTransform(SVGMatrixTearOff*); | 61 SVGPointTearOff* matrixTransform(SVGMatrixTearOff*); |
62 | 62 |
63 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 63 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
64 | 64 |
65 protected: | 65 protected: |
66 SVGPointTearOff(SVGPoint*, | 66 SVGPointTearOff(SVGPoint*, |
67 SVGElement* context_element, | 67 SVGElement* context_element, |
68 PropertyIsAnimValType, | 68 PropertyIsAnimValType, |
69 const QualifiedName& attribute_name = QualifiedName::Null()); | 69 const QualifiedName& attribute_name); |
70 }; | 70 }; |
71 | 71 |
72 } // namespace blink | 72 } // namespace blink |
73 | 73 |
74 #endif // SVGPointTearOff_h | 74 #endif // SVGPointTearOff_h |
OLD | NEW |