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

Unified Diff: Source/core/svg/SVGBoolean.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/SVGAnimationElement.cpp ('k') | Source/core/svg/SVGBoolean.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGBoolean.h
diff --git a/Source/core/svg/SVGBoolean.h b/Source/core/svg/SVGBoolean.h
index 0c0da5b0bd536ec0915e8181e035b04eadeb8e82..be3d545f69d0bb848679318b44347297781d2077 100644
--- a/Source/core/svg/SVGBoolean.h
+++ b/Source/core/svg/SVGBoolean.h
@@ -31,11 +31,11 @@
#ifndef SVGBoolean_h
#define SVGBoolean_h
-#include "core/svg/properties/NewSVGProperty.h"
+#include "core/svg/properties/SVGProperty.h"
namespace WebCore {
-class SVGBoolean : public NewSVGPropertyBase {
+class SVGBoolean : public SVGPropertyBase {
public:
// SVGBoolean does not have a tear-off type.
typedef void TearOffType;
@@ -47,14 +47,14 @@ public:
}
PassRefPtr<SVGBoolean> clone() const { return create(m_value); }
- 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;
bool operator==(const SVGBoolean& other) const { return m_value == other.m_value; }
bool operator!=(const SVGBoolean& other) const { return !operator==(other); }
@@ -66,7 +66,7 @@ public:
private:
SVGBoolean(bool value)
- : NewSVGPropertyBase(classType())
+ : SVGPropertyBase(classType())
, m_value(value)
{
}
@@ -74,9 +74,9 @@ private:
bool m_value;
};
-inline PassRefPtr<SVGBoolean> toSVGBoolean(PassRefPtr<NewSVGPropertyBase> passBase)
+inline PassRefPtr<SVGBoolean> toSVGBoolean(PassRefPtr<SVGPropertyBase> passBase)
{
- RefPtr<NewSVGPropertyBase> base = passBase;
+ RefPtr<SVGPropertyBase> base = passBase;
ASSERT(base->type() == SVGBoolean::classType());
return static_pointer_cast<SVGBoolean>(base.release());
}
« no previous file with comments | « Source/core/svg/SVGAnimationElement.cpp ('k') | Source/core/svg/SVGBoolean.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698