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 25 matching lines...) Expand all Loading... |
36 #include "core/svg/properties/SVGAnimatedProperty.h" | 36 #include "core/svg/properties/SVGAnimatedProperty.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class SVGAnimatedBoolean final : public SVGAnimatedProperty<SVGBoolean>, | 40 class SVGAnimatedBoolean final : public SVGAnimatedProperty<SVGBoolean>, |
41 public ScriptWrappable { | 41 public ScriptWrappable { |
42 DEFINE_WRAPPERTYPEINFO(); | 42 DEFINE_WRAPPERTYPEINFO(); |
43 | 43 |
44 public: | 44 public: |
45 static SVGAnimatedBoolean* create(SVGElement* contextElement, | 45 static SVGAnimatedBoolean* create(SVGElement* contextElement, |
46 const QualifiedName& attributeName, | 46 const QualifiedName& attributeName) { |
47 SVGBoolean* initialValue) { | 47 return new SVGAnimatedBoolean(contextElement, attributeName); |
48 return new SVGAnimatedBoolean(contextElement, attributeName, initialValue); | |
49 } | 48 } |
50 | 49 |
51 DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() { | 50 DEFINE_INLINE_VIRTUAL_TRACE_WRAPPERS() { |
52 visitor->traceWrappers(contextElement()); | 51 visitor->traceWrappers(contextElement()); |
53 } | 52 } |
54 | 53 |
55 protected: | 54 protected: |
56 SVGAnimatedBoolean(SVGElement* contextElement, | 55 SVGAnimatedBoolean(SVGElement* contextElement, |
57 const QualifiedName& attributeName, | 56 const QualifiedName& attributeName) |
58 SVGBoolean* initialValue) | |
59 : SVGAnimatedProperty<SVGBoolean>(contextElement, | 57 : SVGAnimatedProperty<SVGBoolean>(contextElement, |
60 attributeName, | 58 attributeName, |
61 initialValue) {} | 59 SVGBoolean::create()) {} |
62 }; | 60 }; |
63 | 61 |
64 } // namespace blink | 62 } // namespace blink |
65 | 63 |
66 #endif // SVGAnimatedBoolean_h | 64 #endif // SVGAnimatedBoolean_h |
OLD | NEW |