| 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 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class SVGAnimatedIntegerOptionalInteger; | 41 class SVGAnimatedIntegerOptionalInteger; |
| 42 | 42 |
| 43 // SVG Spec: http://www.w3.org/TR/SVG11/types.html#InterfaceSVGAnimatedInteger | 43 // SVG Spec: http://www.w3.org/TR/SVG11/types.html#InterfaceSVGAnimatedInteger |
| 44 class SVGAnimatedInteger : public SVGAnimatedProperty<SVGInteger>, public Script
Wrappable { | 44 class SVGAnimatedInteger : public SVGAnimatedProperty<SVGInteger>, public Script
Wrappable { |
| 45 DEFINE_WRAPPERTYPEINFO(); | 45 DEFINE_WRAPPERTYPEINFO(); |
| 46 public: | 46 public: |
| 47 static PassRefPtrWillBeRawPtr<SVGAnimatedInteger> create(SVGElement* context
Element, const QualifiedName& attributeName, PassRefPtrWillBeRawPtr<SVGInteger>
initialValue) | 47 static RawPtr<SVGAnimatedInteger> create(SVGElement* contextElement, const Q
ualifiedName& attributeName, RawPtr<SVGInteger> initialValue) |
| 48 { | 48 { |
| 49 return adoptRefWillBeNoop(new SVGAnimatedInteger(contextElement, attribu
teName, initialValue)); | 49 return new SVGAnimatedInteger(contextElement, attributeName, initialValu
e); |
| 50 } | 50 } |
| 51 | 51 |
| 52 void synchronizeAttribute() override; | 52 void synchronizeAttribute() override; |
| 53 | 53 |
| 54 void setParentOptionalInteger(SVGAnimatedIntegerOptionalInteger* numberOptio
nalInteger) | 54 void setParentOptionalInteger(SVGAnimatedIntegerOptionalInteger* numberOptio
nalInteger) |
| 55 { | 55 { |
| 56 m_parentIntegerOptionalInteger = numberOptionalInteger; | 56 m_parentIntegerOptionalInteger = numberOptionalInteger; |
| 57 } | 57 } |
| 58 | 58 |
| 59 DECLARE_VIRTUAL_TRACE(); | 59 DECLARE_VIRTUAL_TRACE(); |
| 60 | 60 |
| 61 protected: | 61 protected: |
| 62 SVGAnimatedInteger(SVGElement* contextElement, const QualifiedName& attribut
eName, PassRefPtrWillBeRawPtr<SVGInteger> initialValue) | 62 SVGAnimatedInteger(SVGElement* contextElement, const QualifiedName& attribut
eName, RawPtr<SVGInteger> initialValue) |
| 63 : SVGAnimatedProperty<SVGInteger>(contextElement, attributeName, initial
Value) | 63 : SVGAnimatedProperty<SVGInteger>(contextElement, attributeName, initial
Value) |
| 64 , m_parentIntegerOptionalInteger(nullptr) | 64 , m_parentIntegerOptionalInteger(nullptr) |
| 65 { | 65 { |
| 66 } | 66 } |
| 67 | 67 |
| 68 RawPtrWillBeMember<SVGAnimatedIntegerOptionalInteger> m_parentIntegerOptiona
lInteger; | 68 Member<SVGAnimatedIntegerOptionalInteger> m_parentIntegerOptionalInteger; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace blink | 71 } // namespace blink |
| 72 | 72 |
| 73 #endif // SVGAnimatedInteger_h | 73 #endif // SVGAnimatedInteger_h |
| OLD | NEW |