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

Unified Diff: Source/core/svg/SVGLength.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/SVGLength.h ('k') | Source/core/svg/SVGLengthList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLength.cpp
diff --git a/Source/core/svg/SVGLength.cpp b/Source/core/svg/SVGLength.cpp
index 5cf61be9104fa6921099fbf55d5d623a0de937d6..14fbb09e39f1879bfbdbdd83d616baf2621d931d 100644
--- a/Source/core/svg/SVGLength.cpp
+++ b/Source/core/svg/SVGLength.cpp
@@ -106,7 +106,7 @@ SVGLengthType stringToLengthType(const CharType*& ptr, const CharType* end)
} // namespace
SVGLength::SVGLength(SVGLengthMode mode)
- : NewSVGPropertyBase(classType())
+ : SVGPropertyBase(classType())
, m_valueInSpecifiedUnits(0)
, m_unitMode(mode)
, m_unitType(LengthTypeNumber)
@@ -114,7 +114,7 @@ SVGLength::SVGLength(SVGLengthMode mode)
}
SVGLength::SVGLength(const SVGLength& o)
- : NewSVGPropertyBase(classType())
+ : SVGPropertyBase(classType())
, m_valueInSpecifiedUnits(o.m_valueInSpecifiedUnits)
, m_unitMode(o.m_unitMode)
, m_unitType(o.m_unitType)
@@ -126,7 +126,7 @@ PassRefPtr<SVGLength> SVGLength::clone() const
return adoptRef(new SVGLength(*this));
}
-PassRefPtr<NewSVGPropertyBase> SVGLength::cloneForAnimation(const String& value) const
+PassRefPtr<SVGPropertyBase> SVGLength::cloneForAnimation(const String& value) const
{
RefPtr<SVGLength> length = create();
@@ -434,14 +434,14 @@ PassRefPtr<SVGLength> SVGLength::blend(PassRefPtr<SVGLength> passFrom, float pro
return length;
}
-void SVGLength::add(PassRefPtr<NewSVGPropertyBase> other, SVGElement* contextElement)
+void SVGLength::add(PassRefPtr<SVGPropertyBase> other, SVGElement* contextElement)
{
SVGLengthContext lengthContext(contextElement);
setValue(value(lengthContext) + toSVGLength(other)->value(lengthContext), lengthContext, ASSERT_NO_EXCEPTION);
}
-void SVGLength::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<NewSVGPropertyBase> fromValue, PassRefPtr<NewSVGPropertyBase> toValue, PassRefPtr<NewSVGPropertyBase> toAtEndOfDurationValue, SVGElement* contextElement)
+void SVGLength::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> fromValue, PassRefPtr<SVGPropertyBase> toValue, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement* contextElement)
{
RefPtr<SVGLength> fromLength = toSVGLength(fromValue);
RefPtr<SVGLength> toLength = toSVGLength(toValue);
@@ -456,7 +456,7 @@ void SVGLength::calculateAnimatedValue(SVGAnimationElement* animationElement, fl
setValue(animatedNumber, lengthContext, ASSERT_NO_EXCEPTION);
}
-float SVGLength::calculateDistance(PassRefPtr<NewSVGPropertyBase> toValue, SVGElement* contextElement)
+float SVGLength::calculateDistance(PassRefPtr<SVGPropertyBase> toValue, SVGElement* contextElement)
{
SVGLengthContext lengthContext(contextElement);
RefPtr<SVGLength> toLength = toSVGLength(toValue);
« no previous file with comments | « Source/core/svg/SVGLength.h ('k') | Source/core/svg/SVGLengthList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698