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

Unified Diff: Source/core/svg/SVGInteger.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/SVGInteger.h ('k') | Source/core/svg/SVGIntegerOptionalInteger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGInteger.cpp
diff --git a/Source/core/svg/SVGInteger.cpp b/Source/core/svg/SVGInteger.cpp
index 766d917fe71392a982aa9bd9dd1c5f5ccd2238da..2c790a934b0632af24e008cf3d54cce93cf321c6 100644
--- a/Source/core/svg/SVGInteger.cpp
+++ b/Source/core/svg/SVGInteger.cpp
@@ -36,7 +36,7 @@
namespace WebCore {
SVGInteger::SVGInteger(int value)
- : NewSVGPropertyBase(classType())
+ : SVGPropertyBase(classType())
, m_value(value)
{
}
@@ -46,7 +46,7 @@ PassRefPtr<SVGInteger> SVGInteger::clone() const
return create(m_value);
}
-PassRefPtr<NewSVGPropertyBase> SVGInteger::cloneForAnimation(const String& value) const
+PassRefPtr<SVGPropertyBase> SVGInteger::cloneForAnimation(const String& value) const
{
RefPtr<SVGInteger> svgInteger = create();
svgInteger->setValueAsString(value, IGNORE_EXCEPTION);
@@ -74,12 +74,12 @@ void SVGInteger::setValueAsString(const String& string, ExceptionState& exceptio
}
}
-void SVGInteger::add(PassRefPtr<NewSVGPropertyBase> other, SVGElement*)
+void SVGInteger::add(PassRefPtr<SVGPropertyBase> other, SVGElement*)
{
setValue(m_value + toSVGInteger(other)->value());
}
-void SVGInteger::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<NewSVGPropertyBase> from, PassRefPtr<NewSVGPropertyBase> to, PassRefPtr<NewSVGPropertyBase> toAtEndOfDuration, SVGElement*)
+void SVGInteger::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> from, PassRefPtr<SVGPropertyBase> to, PassRefPtr<SVGPropertyBase> toAtEndOfDuration, SVGElement*)
{
ASSERT(animationElement);
@@ -92,7 +92,7 @@ void SVGInteger::calculateAnimatedValue(SVGAnimationElement* animationElement, f
m_value = static_cast<int>(roundf(animatedFloat));
}
-float SVGInteger::calculateDistance(PassRefPtr<NewSVGPropertyBase> other, SVGElement*)
+float SVGInteger::calculateDistance(PassRefPtr<SVGPropertyBase> other, SVGElement*)
{
return abs(m_value - toSVGInteger(other)->value());
}
« no previous file with comments | « Source/core/svg/SVGInteger.h ('k') | Source/core/svg/SVGIntegerOptionalInteger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698