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

Unified Diff: Source/core/svg/SVGNumberOptionalNumber.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/SVGNumberOptionalNumber.h ('k') | Source/core/svg/SVGNumberTearOff.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGNumberOptionalNumber.cpp
diff --git a/Source/core/svg/SVGNumberOptionalNumber.cpp b/Source/core/svg/SVGNumberOptionalNumber.cpp
index b7510cb9b6d432cc4eabc4c68e1b12aa30692624..6587e464ff2aa735a488e3f429971eeda885a905 100644
--- a/Source/core/svg/SVGNumberOptionalNumber.cpp
+++ b/Source/core/svg/SVGNumberOptionalNumber.cpp
@@ -37,7 +37,7 @@
namespace WebCore {
SVGNumberOptionalNumber::SVGNumberOptionalNumber(PassRefPtr<SVGNumber> firstNumber, PassRefPtr<SVGNumber> secondNumber)
- : NewSVGPropertyBase(classType())
+ : SVGPropertyBase(classType())
, m_firstNumber(firstNumber)
, m_secondNumber(secondNumber)
{
@@ -48,7 +48,7 @@ PassRefPtr<SVGNumberOptionalNumber> SVGNumberOptionalNumber::clone() const
return SVGNumberOptionalNumber::create(m_firstNumber->clone(), m_secondNumber->clone());
}
-PassRefPtr<NewSVGPropertyBase> SVGNumberOptionalNumber::cloneForAnimation(const String& value) const
+PassRefPtr<SVGPropertyBase> SVGNumberOptionalNumber::cloneForAnimation(const String& value) const
{
float x, y;
if (!parseNumberOptionalNumber(value, x, y)) {
@@ -79,7 +79,7 @@ void SVGNumberOptionalNumber::setValueAsString(const String& value, ExceptionSta
m_secondNumber->setValue(y);
}
-void SVGNumberOptionalNumber::add(PassRefPtr<NewSVGPropertyBase> other, SVGElement*)
+void SVGNumberOptionalNumber::add(PassRefPtr<SVGPropertyBase> other, SVGElement*)
{
RefPtr<SVGNumberOptionalNumber> otherNumberOptionalNumber = toSVGNumberOptionalNumber(other);
@@ -87,7 +87,7 @@ void SVGNumberOptionalNumber::add(PassRefPtr<NewSVGPropertyBase> other, SVGEleme
m_secondNumber->setValue(m_secondNumber->value() + otherNumberOptionalNumber->m_secondNumber->value());
}
-void SVGNumberOptionalNumber::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<NewSVGPropertyBase> from, PassRefPtr<NewSVGPropertyBase> to, PassRefPtr<NewSVGPropertyBase> toAtEndOfDuration, SVGElement*)
+void SVGNumberOptionalNumber::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> from, PassRefPtr<SVGPropertyBase> to, PassRefPtr<SVGPropertyBase> toAtEndOfDuration, SVGElement*)
{
ASSERT(animationElement);
@@ -103,7 +103,7 @@ void SVGNumberOptionalNumber::calculateAnimatedValue(SVGAnimationElement* animat
m_secondNumber->setValue(y);
}
-float SVGNumberOptionalNumber::calculateDistance(PassRefPtr<NewSVGPropertyBase> other, SVGElement*)
+float SVGNumberOptionalNumber::calculateDistance(PassRefPtr<SVGPropertyBase> other, SVGElement*)
{
// FIXME: Distance calculation is not possible for SVGNumberOptionalNumber right now. We need the distance for every single value.
return -1;
« no previous file with comments | « Source/core/svg/SVGNumberOptionalNumber.h ('k') | Source/core/svg/SVGNumberTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698