| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 Property* target() | 125 Property* target() |
| 126 { | 126 { |
| 127 return m_target.get(); | 127 return m_target.get(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void setTarget(PassRefPtrWillBeRawPtr<Property> target) | 130 void setTarget(PassRefPtrWillBeRawPtr<Property> target) |
| 131 { | 131 { |
| 132 m_target = target; | 132 m_target = target; |
| 133 } | 133 } |
| 134 | 134 |
| 135 virtual AnimatedPropertyType type() const override | 135 AnimatedPropertyType type() const override |
| 136 { | 136 { |
| 137 return Property::classType(); | 137 return Property::classType(); |
| 138 } | 138 } |
| 139 | 139 |
| 140 DEFINE_INLINE_VIRTUAL_TRACE() | 140 DEFINE_INLINE_VIRTUAL_TRACE() |
| 141 { | 141 { |
| 142 visitor->trace(m_target); | 142 visitor->trace(m_target); |
| 143 SVGPropertyTearOffBase::trace(visitor); | 143 SVGPropertyTearOffBase::trace(visitor); |
| 144 } | 144 } |
| 145 | 145 |
| 146 protected: | 146 protected: |
| 147 SVGPropertyTearOff(PassRefPtrWillBeRawPtr<Property> target, SVGElement* cont
extElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attrib
uteName = QualifiedName::null()) | 147 SVGPropertyTearOff(PassRefPtrWillBeRawPtr<Property> target, SVGElement* cont
extElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attrib
uteName = QualifiedName::null()) |
| 148 : SVGPropertyTearOffBase(contextElement, propertyIsAnimVal, attributeNam
e) | 148 : SVGPropertyTearOffBase(contextElement, propertyIsAnimVal, attributeNam
e) |
| 149 , m_target(target) | 149 , m_target(target) |
| 150 { | 150 { |
| 151 ASSERT(m_target); | 151 ASSERT(m_target); |
| 152 } | 152 } |
| 153 | 153 |
| 154 private: | 154 private: |
| 155 RefPtrWillBeMember<Property> m_target; | 155 RefPtrWillBeMember<Property> m_target; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } | 158 } |
| 159 | 159 |
| 160 #endif // SVGPropertyTearOff_h | 160 #endif // SVGPropertyTearOff_h |
| OLD | NEW |