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

Unified Diff: Source/core/svg/SVGString.h

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/SVGStaticStringList.cpp ('k') | Source/core/svg/SVGString.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGString.h
diff --git a/Source/core/svg/SVGString.h b/Source/core/svg/SVGString.h
index 31bc758cd65b313baf00c7d2b5d94e466f729c14..ece6a9e635e4afcd20c09b6cc5e628cccabaa1df 100644
--- a/Source/core/svg/SVGString.h
+++ b/Source/core/svg/SVGString.h
@@ -31,11 +31,11 @@
#ifndef SVGString_h
#define SVGString_h
-#include "core/svg/properties/NewSVGProperty.h"
+#include "core/svg/properties/SVGProperty.h"
namespace WebCore {
-class SVGString : public NewSVGPropertyBase {
+class SVGString : public SVGPropertyBase {
public:
// SVGString does not have a tear-off type.
typedef void TearOffType;
@@ -52,7 +52,7 @@ public:
}
PassRefPtr<SVGString> clone() const { return create(m_value); }
- virtual PassRefPtr<NewSVGPropertyBase> cloneForAnimation(const String& value) const OVERRIDE
+ virtual PassRefPtr<SVGPropertyBase> cloneForAnimation(const String& value) const OVERRIDE
{
return create(value);
}
@@ -60,9 +60,9 @@ public:
virtual String valueAsString() const OVERRIDE { return m_value; }
void setValueAsString(const String& value, ExceptionState&) { m_value = value; }
- virtual void add(PassRefPtr<NewSVGPropertyBase>, SVGElement*) OVERRIDE;
- virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtr<NewSVGPropertyBase> from, PassRefPtr<NewSVGPropertyBase> to, PassRefPtr<NewSVGPropertyBase> toAtEndOfDurationValue, SVGElement*) OVERRIDE;
- virtual float calculateDistance(PassRefPtr<NewSVGPropertyBase> to, SVGElement*) OVERRIDE;
+ virtual void add(PassRefPtr<SVGPropertyBase>, SVGElement*) OVERRIDE;
+ virtual void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtr<SVGPropertyBase> from, PassRefPtr<SVGPropertyBase> to, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*) OVERRIDE;
+ virtual float calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement*) OVERRIDE;
const String& value() const { return m_value; }
void setValue(const String& value) { m_value = value; }
@@ -71,12 +71,12 @@ public:
private:
SVGString()
- : NewSVGPropertyBase(classType())
+ : SVGPropertyBase(classType())
{
}
explicit SVGString(const String& value)
- : NewSVGPropertyBase(classType())
+ : SVGPropertyBase(classType())
, m_value(value)
{
}
@@ -84,9 +84,9 @@ private:
String m_value;
};
-inline PassRefPtr<SVGString> toSVGString(PassRefPtr<NewSVGPropertyBase> passBase)
+inline PassRefPtr<SVGString> toSVGString(PassRefPtr<SVGPropertyBase> passBase)
{
- RefPtr<NewSVGPropertyBase> base = passBase;
+ RefPtr<SVGPropertyBase> base = passBase;
ASSERT(base->type() == SVGString::classType());
return static_pointer_cast<SVGString>(base.release());
}
« no previous file with comments | « Source/core/svg/SVGStaticStringList.cpp ('k') | Source/core/svg/SVGString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698