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

Unified Diff: Source/core/svg/SVGRect.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/SVGRect.h ('k') | Source/core/svg/SVGRectTearOff.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGRect.cpp
diff --git a/Source/core/svg/SVGRect.cpp b/Source/core/svg/SVGRect.cpp
index 85d3417480fc9c58291b5e91bc5e0e0f3fef8226..7bd93267ba5adc2d9f9e8d96e727940cac26160f 100644
--- a/Source/core/svg/SVGRect.cpp
+++ b/Source/core/svg/SVGRect.cpp
@@ -33,19 +33,19 @@
namespace WebCore {
SVGRect::SVGRect()
- : NewSVGPropertyBase(classType())
+ : SVGPropertyBase(classType())
, m_isValid(true)
{
}
SVGRect::SVGRect(InvalidSVGRectTag)
- : NewSVGPropertyBase(classType())
+ : SVGPropertyBase(classType())
{
setInvalid();
}
SVGRect::SVGRect(const FloatRect& rect)
- : NewSVGPropertyBase(classType())
+ : SVGPropertyBase(classType())
, m_isValid(true)
, m_value(rect)
{
@@ -56,7 +56,7 @@ PassRefPtr<SVGRect> SVGRect::clone() const
return SVGRect::create(m_value);
}
-PassRefPtr<NewSVGPropertyBase> SVGRect::cloneForAnimation(const String& value) const
+PassRefPtr<SVGPropertyBase> SVGRect::cloneForAnimation(const String& value) const
{
RefPtr<SVGRect> rect = SVGRect::create();
rect->setValueAsString(value, IGNORE_EXCEPTION);
@@ -130,12 +130,12 @@ String SVGRect::valueAsString() const
return builder.toString();
}
-void SVGRect::add(PassRefPtr<NewSVGPropertyBase> other, SVGElement*)
+void SVGRect::add(PassRefPtr<SVGPropertyBase> other, SVGElement*)
{
m_value += toSVGRect(other)->value();
}
-void SVGRect::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<NewSVGPropertyBase> fromValue, PassRefPtr<NewSVGPropertyBase> toValue, PassRefPtr<NewSVGPropertyBase> toAtEndOfDurationValue, SVGElement*)
+void SVGRect::calculateAnimatedValue(SVGAnimationElement* animationElement, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> fromValue, PassRefPtr<SVGPropertyBase> toValue, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*)
{
ASSERT(animationElement);
RefPtr<SVGRect> fromRect = animationElement->animationMode() == ToAnimation ? this : toSVGRect(fromValue);
@@ -154,7 +154,7 @@ void SVGRect::calculateAnimatedValue(SVGAnimationElement* animationElement, floa
m_value = FloatRect(animatedX, animatedY, animatedWidth, animatedHeight);
}
-float SVGRect::calculateDistance(PassRefPtr<NewSVGPropertyBase> to, SVGElement* contextElement)
+float SVGRect::calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement* contextElement)
{
// FIXME: Distance calculation is not possible for SVGRect right now. We need the distance for every single value.
return -1;
« no previous file with comments | « Source/core/svg/SVGRect.h ('k') | Source/core/svg/SVGRectTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698