| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 SVGPoint::SVGPoint() | 45 SVGPoint::SVGPoint() |
| 46 { | 46 { |
| 47 } | 47 } |
| 48 | 48 |
| 49 SVGPoint::SVGPoint(const FloatPoint& point) | 49 SVGPoint::SVGPoint(const FloatPoint& point) |
| 50 : m_value(point) | 50 : m_value(point) |
| 51 { | 51 { |
| 52 } | 52 } |
| 53 | 53 |
| 54 PassRefPtr<SVGPoint> SVGPoint::clone() const | 54 PassRefPtrWillBeRawPtr<SVGPoint> SVGPoint::clone() const |
| 55 { | 55 { |
| 56 return SVGPoint::create(m_value); | 56 return SVGPoint::create(m_value); |
| 57 } | 57 } |
| 58 | 58 |
| 59 template<typename CharType> | 59 template<typename CharType> |
| 60 void SVGPoint::parse(const CharType*& ptr, const CharType* end, ExceptionState&
exceptionState) | 60 void SVGPoint::parse(const CharType*& ptr, const CharType* end, ExceptionState&
exceptionState) |
| 61 { | 61 { |
| 62 const CharType* start = ptr; | 62 const CharType* start = ptr; |
| 63 | 63 |
| 64 skipOptionalSVGSpaces(ptr, end); | 64 skipOptionalSVGSpaces(ptr, end); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 builder.appendNumber(y()); | 115 builder.appendNumber(y()); |
| 116 return builder.toString(); | 116 return builder.toString(); |
| 117 } | 117 } |
| 118 | 118 |
| 119 void SVGPoint::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*) | 119 void SVGPoint::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*) |
| 120 { | 120 { |
| 121 // SVGPoint is not animated by itself | 121 // SVGPoint is not animated by itself |
| 122 ASSERT_NOT_REACHED(); | 122 ASSERT_NOT_REACHED(); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void SVGPoint::calculateAnimatedValue(SVGAnimationElement* animationElement, flo
at percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> fromValue, Pass
RefPtr<SVGPropertyBase> toValue, PassRefPtr<SVGPropertyBase> toAtEndOfDurationVa
lue, SVGElement*) | 125 void SVGPoint::calculateAnimatedValue(SVGAnimationElement* animationElement, flo
at percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> fro
mValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, PassRefPtrWillBeRawPtr<
SVGPropertyBase> toAtEndOfDurationValue, SVGElement*) |
| 126 { | 126 { |
| 127 // SVGPoint is not animated by itself | 127 // SVGPoint is not animated by itself |
| 128 ASSERT_NOT_REACHED(); | 128 ASSERT_NOT_REACHED(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 float SVGPoint::calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement* co
ntextElement) | 131 float SVGPoint::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SV
GElement* contextElement) |
| 132 { | 132 { |
| 133 // SVGPoint is not animated by itself | 133 // SVGPoint is not animated by itself |
| 134 ASSERT_NOT_REACHED(); | 134 ASSERT_NOT_REACHED(); |
| 135 return 0.0f; | 135 return 0.0f; |
| 136 } | 136 } |
| 137 | 137 |
| 138 } | 138 } |
| OLD | NEW |