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

Unified Diff: Source/core/svg/SVGEnumeration.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/SVGElement.cpp ('k') | Source/core/svg/SVGEnumeration.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGEnumeration.h
diff --git a/Source/core/svg/SVGEnumeration.h b/Source/core/svg/SVGEnumeration.h
index eef4a8cfe0b7e137ffa7ab7e955078a528f30d3b..e0ee337238d1d6cc77759accaeadb84dc295fc56 100644
--- a/Source/core/svg/SVGEnumeration.h
+++ b/Source/core/svg/SVGEnumeration.h
@@ -31,11 +31,11 @@
#ifndef SVGEnumeration_h
#define SVGEnumeration_h
-#include "core/svg/properties/NewSVGProperty.h"
+#include "core/svg/properties/SVGProperty.h"
namespace WebCore {
-class SVGEnumerationBase : public NewSVGPropertyBase {
+class SVGEnumerationBase : public SVGPropertyBase {
public:
typedef std::pair<unsigned short, String> StringEntry;
typedef Vector<StringEntry> StringEntries;
@@ -52,25 +52,25 @@ public:
// This assumes that |m_entries| are sorted.
unsigned short maxEnumValue() const { return m_entries.last().first; }
- // NewSVGPropertyBase:
+ // SVGPropertyBase:
virtual PassRefPtr<SVGEnumerationBase> clone() const = 0;
- virtual PassRefPtr<NewSVGPropertyBase> cloneForAnimation(const String&) const OVERRIDE;
+ virtual PassRefPtr<SVGPropertyBase> cloneForAnimation(const String&) const OVERRIDE;
virtual String valueAsString() const OVERRIDE;
void setValueAsString(const String&, ExceptionState&);
- 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;
static AnimatedPropertyType classType() { return AnimatedEnumeration; }
- // Ensure that |SVGAnimatedEnumerationBase::setBaseVal| is used instead of |NewSVGAnimatedProperty<SVGEnumerationBase>::setBaseVal|.
+ // Ensure that |SVGAnimatedEnumerationBase::setBaseVal| is used instead of |SVGAnimatedProperty<SVGEnumerationBase>::setBaseVal|.
void setValue(unsigned short) { ASSERT_NOT_REACHED(); }
protected:
SVGEnumerationBase(unsigned short value, const StringEntries& entries)
- : NewSVGPropertyBase(classType())
+ : SVGPropertyBase(classType())
, m_value(value)
, m_entries(entries)
{
« no previous file with comments | « Source/core/svg/SVGElement.cpp ('k') | Source/core/svg/SVGEnumeration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698