| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 PassRefPtr<ItemPropertyType> removeItem(size_t index, ExceptionState& except
ionState) | 124 PassRefPtr<ItemPropertyType> removeItem(size_t index, ExceptionState& except
ionState) |
| 125 { | 125 { |
| 126 updateListFromByteStream(); | 126 updateListFromByteStream(); |
| 127 clearByteStream(); | 127 clearByteStream(); |
| 128 return Base::removeItem(index, exceptionState); | 128 return Base::removeItem(index, exceptionState); |
| 129 } | 129 } |
| 130 | 130 |
| 131 PassRefPtr<ItemPropertyType> appendItem(PassRefPtr<ItemPropertyType> passIte
m); | 131 PassRefPtr<ItemPropertyType> appendItem(PassRefPtr<ItemPropertyType> passIte
m); |
| 132 | 132 |
| 133 // SVGPropertyBase: | 133 // SVGPropertyBase: |
| 134 virtual PassRefPtr<SVGPropertyBase> cloneForAnimation(const String&) const O
VERRIDE; | 134 virtual PassRefPtr<SVGPropertyBase> cloneForAnimation(const String&) const o
verride; |
| 135 virtual PassRefPtr<SVGPathSegList> clone() OVERRIDE; | 135 virtual PassRefPtr<SVGPathSegList> clone() override; |
| 136 virtual String valueAsString() const OVERRIDE; | 136 virtual String valueAsString() const override; |
| 137 void setValueAsString(const String&, ExceptionState&); | 137 void setValueAsString(const String&, ExceptionState&); |
| 138 | 138 |
| 139 virtual void add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*) OVERR
IDE; | 139 virtual void add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*) overr
ide; |
| 140 virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage,
unsigned repeatCount, PassRefPtr<SVGPropertyBase> fromValue, PassRefPtr<SVGPrope
rtyBase> toValue, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement
*) OVERRIDE; | 140 virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage,
unsigned repeatCount, PassRefPtr<SVGPropertyBase> fromValue, PassRefPtr<SVGPrope
rtyBase> toValue, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement
*) override; |
| 141 virtual float calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement*)
OVERRIDE; | 141 virtual float calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement*)
override; |
| 142 | 142 |
| 143 static AnimatedPropertyType classType() { return AnimatedPath; } | 143 static AnimatedPropertyType classType() { return AnimatedPath; } |
| 144 | 144 |
| 145 private: | 145 private: |
| 146 SVGPathSegList(SVGPathElement*); | 146 SVGPathSegList(SVGPathElement*); |
| 147 SVGPathSegList(SVGPathElement*, PassOwnPtr<SVGPathByteStream>); | 147 SVGPathSegList(SVGPathElement*, PassOwnPtr<SVGPathByteStream>); |
| 148 | 148 |
| 149 friend class SVGPathSegListBuilder; | 149 friend class SVGPathSegListBuilder; |
| 150 // This is only to be called from SVGPathSegListBuilder. | 150 // This is only to be called from SVGPathSegListBuilder. |
| 151 void appendWithoutByteStreamSync(PassRefPtr<ItemPropertyType> passNewItem) | 151 void appendWithoutByteStreamSync(PassRefPtr<ItemPropertyType> passNewItem) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 170 inline PassRefPtr<SVGPathSegList> toSVGPathSegList(PassRefPtr<SVGPropertyBase> p
assBase) | 170 inline PassRefPtr<SVGPathSegList> toSVGPathSegList(PassRefPtr<SVGPropertyBase> p
assBase) |
| 171 { | 171 { |
| 172 RefPtr<SVGPropertyBase> base = passBase; | 172 RefPtr<SVGPropertyBase> base = passBase; |
| 173 ASSERT(base->type() == SVGPathSegList::classType()); | 173 ASSERT(base->type() == SVGPathSegList::classType()); |
| 174 return static_pointer_cast<SVGPathSegList>(base.release()); | 174 return static_pointer_cast<SVGPathSegList>(base.release()); |
| 175 } | 175 } |
| 176 | 176 |
| 177 } // namespace blink | 177 } // namespace blink |
| 178 | 178 |
| 179 #endif | 179 #endif |
| OLD | NEW |