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

Unified Diff: Source/core/svg/SVGPathSegList.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/SVGPathSeg.h ('k') | Source/core/svg/SVGPathSegList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathSegList.h
diff --git a/Source/core/svg/SVGPathSegList.h b/Source/core/svg/SVGPathSegList.h
index 403bf7540077a3b4d2a7fc8678e832861ec75d53..f87344dec4b95767b2ced35c268f0829ddea0d5a 100644
--- a/Source/core/svg/SVGPathSegList.h
+++ b/Source/core/svg/SVGPathSegList.h
@@ -33,8 +33,8 @@
#include "core/svg/SVGPathByteStream.h"
#include "core/svg/SVGPathSeg.h"
-#include "core/svg/properties/NewSVGAnimatedProperty.h"
-#include "core/svg/properties/NewSVGListPropertyHelper.h"
+#include "core/svg/properties/SVGAnimatedProperty.h"
+#include "core/svg/properties/SVGListPropertyHelper.h"
#include "wtf/WeakPtr.h"
namespace WebCore {
@@ -42,12 +42,12 @@ namespace WebCore {
class SVGPathElement;
class SVGPathSegListTearOff;
-class SVGPathSegList : public NewSVGListPropertyHelper<SVGPathSegList, SVGPathSeg> {
+class SVGPathSegList : public SVGListPropertyHelper<SVGPathSegList, SVGPathSeg> {
public:
typedef void PrimitiveType;
typedef SVGPathSeg ItemPropertyType;
typedef SVGPathSegListTearOff TearOffType;
- typedef NewSVGListPropertyHelper<SVGPathSegList, SVGPathSeg> Base;
+ typedef SVGListPropertyHelper<SVGPathSegList, SVGPathSeg> Base;
static PassRefPtr<SVGPathSegList> create(SVGPathElement* contextElement, SVGPathSegRole role = PathSegUndefinedRole)
{
@@ -59,7 +59,7 @@ public:
const SVGPathByteStream* byteStream() const;
void clearByteStream() { m_byteStream.clear(); }
- // NewSVGListPropertyHelper methods with |m_byteStream| sync:
+ // SVGListPropertyHelper methods with |m_byteStream| sync:
ItemPropertyType* at(size_t index)
{
@@ -129,15 +129,15 @@ public:
PassRefPtr<ItemPropertyType> appendItem(PassRefPtr<ItemPropertyType> passItem);
- // NewSVGPropertyBase:
+ // SVGPropertyBase:
PassRefPtr<SVGPathSegList> clone();
- 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> fromValue, PassRefPtr<NewSVGPropertyBase> toValue, 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> fromValue, PassRefPtr<SVGPropertyBase> toValue, PassRefPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*) OVERRIDE;
+ virtual float calculateDistance(PassRefPtr<SVGPropertyBase> to, SVGElement*) OVERRIDE;
static AnimatedPropertyType classType() { return AnimatedPath; }
@@ -167,9 +167,9 @@ private:
bool m_listSyncedToByteStream;
};
-inline PassRefPtr<SVGPathSegList> toSVGPathSegList(PassRefPtr<NewSVGPropertyBase> passBase)
+inline PassRefPtr<SVGPathSegList> toSVGPathSegList(PassRefPtr<SVGPropertyBase> passBase)
{
- RefPtr<NewSVGPropertyBase> base = passBase;
+ RefPtr<SVGPropertyBase> base = passBase;
ASSERT(base->type() == SVGPathSegList::classType());
return static_pointer_cast<SVGPathSegList>(base.release());
}
« no previous file with comments | « Source/core/svg/SVGPathSeg.h ('k') | Source/core/svg/SVGPathSegList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698