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

Unified Diff: Source/core/svg/SVGEnumeration.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/SVGEnumeration.h ('k') | Source/core/svg/SVGInteger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGEnumeration.cpp
diff --git a/Source/core/svg/SVGEnumeration.cpp b/Source/core/svg/SVGEnumeration.cpp
index de404c6221fbd90c85b316acabedeadcc2f2e861..e3037e874b75b945573758bc516fc0967f0035c0 100644
--- a/Source/core/svg/SVGEnumeration.cpp
+++ b/Source/core/svg/SVGEnumeration.cpp
@@ -39,9 +39,9 @@
namespace WebCore {
-inline PassRefPtr<SVGEnumerationBase> toSVGEnumerationBase(PassRefPtr<NewSVGPropertyBase> passBase)
+inline PassRefPtr<SVGEnumerationBase> toSVGEnumerationBase(PassRefPtr<SVGPropertyBase> passBase)
{
- RefPtr<NewSVGPropertyBase> base = passBase;
+ RefPtr<SVGPropertyBase> base = passBase;
ASSERT(base->type() == SVGEnumerationBase::classType());
return static_pointer_cast<SVGEnumerationBase>(base.release());
}
@@ -50,7 +50,7 @@ SVGEnumerationBase::~SVGEnumerationBase()
{
}
-PassRefPtr<NewSVGPropertyBase> SVGEnumerationBase::cloneForAnimation(const String& value) const
+PassRefPtr<SVGPropertyBase> SVGEnumerationBase::cloneForAnimation(const String& value) const
{
RefPtr<SVGEnumerationBase> svgEnumeration = clone();
svgEnumeration->setValueAsString(value, IGNORE_EXCEPTION);
@@ -102,12 +102,12 @@ void SVGEnumerationBase::setValueAsString(const String& string, ExceptionState&
notifyChange();
}
-void SVGEnumerationBase::add(PassRefPtr<NewSVGPropertyBase>, SVGElement*)
+void SVGEnumerationBase::add(PassRefPtr<SVGPropertyBase>, SVGElement*)
{
ASSERT_NOT_REACHED();
}
-void SVGEnumerationBase::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<NewSVGPropertyBase> from, PassRefPtr<NewSVGPropertyBase> to, PassRefPtr<NewSVGPropertyBase>, SVGElement*)
+void SVGEnumerationBase::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> from, PassRefPtr<SVGPropertyBase> to, PassRefPtr<SVGPropertyBase>, SVGElement*)
{
ASSERT(animationElement);
unsigned short fromEnumeration = animationElement->animationMode() == ToAnimation ? m_value : toSVGEnumerationBase(from)->value();
@@ -116,7 +116,7 @@ void SVGEnumerationBase::calculateAnimatedValue(SVGAnimationElement* animationEl
animationElement->animateDiscreteType<unsigned short>(percentage, fromEnumeration, toEnumeration, m_value);
}
-float SVGEnumerationBase::calculateDistance(PassRefPtr<NewSVGPropertyBase>, SVGElement*)
+float SVGEnumerationBase::calculateDistance(PassRefPtr<SVGPropertyBase>, SVGElement*)
{
// No paced animations for boolean.
return -1;
« no previous file with comments | « Source/core/svg/SVGEnumeration.h ('k') | Source/core/svg/SVGInteger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698