Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(826)

Unified Diff: Source/core/svg/SVGNumber.cpp

Issue 208133002: [SVG] Remove "New" prefix from properties implementation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGNumber.h ('k') | Source/core/svg/SVGNumberList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGNumber.cpp
diff --git a/Source/core/svg/SVGNumber.cpp b/Source/core/svg/SVGNumber.cpp
index f50197e4db3ce2a6dbd6aacafe5792a5a11a6d8a..9afd03a0beb5feddd5dc5e6240e4aa85c766a803 100644
--- a/Source/core/svg/SVGNumber.cpp
+++ b/Source/core/svg/SVGNumber.cpp
@@ -37,7 +37,7 @@
namespace WebCore {
SVGNumber::SVGNumber(float value)
- : NewSVGPropertyBase(classType())
+ : SVGPropertyBase(classType())
, m_value(value)
{
}
@@ -47,7 +47,7 @@ PassRefPtr<SVGNumber> SVGNumber::clone() const
return create(m_value);
}
-PassRefPtr<NewSVGPropertyBase> SVGNumber::cloneForAnimation(const String& value) const
+PassRefPtr<SVGPropertyBase> SVGNumber::cloneForAnimation(const String& value) const
{
RefPtr<SVGNumber> svgNumber = create();
svgNumber->setValueAsString(value, IGNORE_EXCEPTION);
@@ -99,12 +99,12 @@ void SVGNumber::setValueAsString(const String& string, ExceptionState& exception
}
}
-void SVGNumber::add(PassRefPtr<NewSVGPropertyBase> other, SVGElement*)
+void SVGNumber::add(PassRefPtr<SVGPropertyBase> other, SVGElement*)
{
setValue(m_value + toSVGNumber(other)->value());
}
-void SVGNumber::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<NewSVGPropertyBase> from, PassRefPtr<NewSVGPropertyBase> to, PassRefPtr<NewSVGPropertyBase> toAtEndOfDuration, SVGElement*)
+void SVGNumber::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> from, PassRefPtr<SVGPropertyBase> to, PassRefPtr<SVGPropertyBase> toAtEndOfDuration, SVGElement*)
{
ASSERT(animationElement);
@@ -115,7 +115,7 @@ void SVGNumber::calculateAnimatedValue(SVGAnimationElement* animationElement, fl
animationElement->animateAdditiveNumber(percentage, repeatCount, fromNumber->value(), toNumber->value(), toAtEndOfDurationNumber->value(), m_value);
}
-float SVGNumber::calculateDistance(PassRefPtr<NewSVGPropertyBase> other, SVGElement*)
+float SVGNumber::calculateDistance(PassRefPtr<SVGPropertyBase> other, SVGElement*)
{
return fabsf(m_value - toSVGNumber(other)->value());
}
« no previous file with comments | « Source/core/svg/SVGNumber.h ('k') | Source/core/svg/SVGNumberList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698