| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 Property* target() | 118 Property* target() |
| 119 { | 119 { |
| 120 return m_target.get(); | 120 return m_target.get(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 void setTarget(PassRefPtr<Property> target) | 123 void setTarget(PassRefPtr<Property> target) |
| 124 { | 124 { |
| 125 m_target = target; | 125 m_target = target; |
| 126 } | 126 } |
| 127 | 127 |
| 128 virtual AnimatedPropertyType type() const OVERRIDE | 128 virtual AnimatedPropertyType type() const override |
| 129 { | 129 { |
| 130 return Property::classType(); | 130 return Property::classType(); |
| 131 } | 131 } |
| 132 | 132 |
| 133 protected: | 133 protected: |
| 134 SVGPropertyTearOff(PassRefPtr<Property> target, SVGElement* contextElement,
PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = Qu
alifiedName::null()) | 134 SVGPropertyTearOff(PassRefPtr<Property> target, SVGElement* contextElement,
PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = Qu
alifiedName::null()) |
| 135 : SVGPropertyTearOffBase(contextElement, propertyIsAnimVal, attributeNam
e) | 135 : SVGPropertyTearOffBase(contextElement, propertyIsAnimVal, attributeNam
e) |
| 136 , m_target(target) | 136 , m_target(target) |
| 137 { | 137 { |
| 138 ASSERT(m_target); | 138 ASSERT(m_target); |
| 139 } | 139 } |
| 140 | 140 |
| 141 private: | 141 private: |
| 142 RefPtr<Property> m_target; | 142 RefPtr<Property> m_target; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 } | 145 } |
| 146 | 146 |
| 147 #endif // SVGPropertyTearOff_h | 147 #endif // SVGPropertyTearOff_h |
| OLD | NEW |