OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 23 matching lines...) Expand all Loading... |
34 static PassRefPtr<SVGListPropertyTearOff<SVGTransformList> > create(Animated
ListPropertyTearOff* animatedProperty, SVGPropertyRole role, SVGTransformList& v
alues, ListWrapperCache& wrappers) | 34 static PassRefPtr<SVGListPropertyTearOff<SVGTransformList> > create(Animated
ListPropertyTearOff* animatedProperty, SVGPropertyRole role, SVGTransformList& v
alues, ListWrapperCache& wrappers) |
35 { | 35 { |
36 ASSERT(animatedProperty); | 36 ASSERT(animatedProperty); |
37 return adoptRef(new SVGTransformListPropertyTearOff(animatedProperty, ro
le, values, wrappers)); | 37 return adoptRef(new SVGTransformListPropertyTearOff(animatedProperty, ro
le, values, wrappers)); |
38 } | 38 } |
39 | 39 |
40 PassRefPtr<SVGPropertyTearOff<SVGTransform> > createSVGTransformFromMatrix(S
VGPropertyTearOff<SVGMatrix>* matrix, ExceptionCode& ec) | 40 PassRefPtr<SVGPropertyTearOff<SVGTransform> > createSVGTransformFromMatrix(S
VGPropertyTearOff<SVGMatrix>* matrix, ExceptionCode& ec) |
41 { | 41 { |
42 ASSERT(m_values); | 42 ASSERT(m_values); |
43 if (!matrix) { | 43 if (!matrix) { |
44 ec = TYPE_MISMATCH_ERR; | 44 ec = TypeMismatchError; |
45 return 0; | 45 return 0; |
46 } | 46 } |
47 return SVGPropertyTearOff<SVGTransform>::create(m_values->createSVGTrans
formFromMatrix(matrix->propertyReference())); | 47 return SVGPropertyTearOff<SVGTransform>::create(m_values->createSVGTrans
formFromMatrix(matrix->propertyReference())); |
48 } | 48 } |
49 | 49 |
50 PassRefPtr<SVGPropertyTearOff<SVGTransform> > consolidate(ExceptionCode& ec) | 50 PassRefPtr<SVGPropertyTearOff<SVGTransform> > consolidate(ExceptionCode& ec) |
51 { | 51 { |
52 ASSERT(m_values); | 52 ASSERT(m_values); |
53 ASSERT(m_wrappers); | 53 ASSERT(m_wrappers); |
54 if (!canAlterList(ec)) | 54 if (!canAlterList(ec)) |
(...skipping 16 matching lines...) Expand all Loading... |
71 private: | 71 private: |
72 SVGTransformListPropertyTearOff(AnimatedListPropertyTearOff* animatedPropert
y, SVGPropertyRole role, SVGTransformList& values, ListWrapperCache& wrappers) | 72 SVGTransformListPropertyTearOff(AnimatedListPropertyTearOff* animatedPropert
y, SVGPropertyRole role, SVGTransformList& values, ListWrapperCache& wrappers) |
73 : SVGListPropertyTearOff<SVGTransformList>(animatedProperty, role, value
s, wrappers) | 73 : SVGListPropertyTearOff<SVGTransformList>(animatedProperty, role, value
s, wrappers) |
74 { | 74 { |
75 } | 75 } |
76 }; | 76 }; |
77 | 77 |
78 } | 78 } |
79 | 79 |
80 #endif // SVGListPropertyTearOff_h | 80 #endif // SVGListPropertyTearOff_h |
OLD | NEW |