| Index: Source/core/html/canvas/DOMPath2D.h
|
| diff --git a/Source/core/html/canvas/DOMPath.h b/Source/core/html/canvas/DOMPath2D.h
|
| similarity index 72%
|
| rename from Source/core/html/canvas/DOMPath.h
|
| rename to Source/core/html/canvas/DOMPath2D.h
|
| index abb01a6fd71745ea202006276c032113dc686b11..68d886c808baab7d22bff85bcf4cabc8d5d001bc 100644
|
| --- a/Source/core/html/canvas/DOMPath.h
|
| +++ b/Source/core/html/canvas/DOMPath2D.h
|
| @@ -25,8 +25,8 @@
|
| * SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef DOMPath_h
|
| -#define DOMPath_h
|
| +#ifndef DOMPath2D_h
|
| +#define DOMPath2D_h
|
|
|
| #include "bindings/v8/ScriptWrappable.h"
|
| #include "core/html/canvas/CanvasPathMethods.h"
|
| @@ -36,39 +36,39 @@
|
|
|
| namespace WebCore {
|
|
|
| -class DOMPath FINAL : public RefCounted<DOMPath>, public CanvasPathMethods, public ScriptWrappable {
|
| - WTF_MAKE_NONCOPYABLE(DOMPath); WTF_MAKE_FAST_ALLOCATED;
|
| +class DOMPath2D FINAL : public RefCounted<DOMPath2D>, public CanvasPathMethods, public ScriptWrappable {
|
| + WTF_MAKE_NONCOPYABLE(DOMPath2D); WTF_MAKE_FAST_ALLOCATED;
|
| public:
|
| - static PassRefPtr<DOMPath> create() { return adoptRef(new DOMPath); }
|
| - static PassRefPtr<DOMPath> create(const String& pathData) { return adoptRef(new DOMPath(pathData)); }
|
| - static PassRefPtr<DOMPath> create(DOMPath* path) { return adoptRef(new DOMPath(path)); }
|
| + static PassRefPtr<DOMPath2D> create() { return adoptRef(new DOMPath2D); }
|
| + static PassRefPtr<DOMPath2D> create(const String& pathData) { return adoptRef(new DOMPath2D(pathData)); }
|
| + static PassRefPtr<DOMPath2D> create(DOMPath2D* path) { return adoptRef(new DOMPath2D(path)); }
|
|
|
| - static PassRefPtr<DOMPath> create(const Path& path) { return adoptRef(new DOMPath(path)); }
|
| + static PassRefPtr<DOMPath2D> create(const Path& path) { return adoptRef(new DOMPath2D(path)); }
|
|
|
| const Path& path() const { return m_path; }
|
|
|
| - virtual ~DOMPath() { }
|
| + virtual ~DOMPath2D() { }
|
| private:
|
| - DOMPath() : CanvasPathMethods()
|
| + DOMPath2D() : CanvasPathMethods()
|
| {
|
| ScriptWrappable::init(this);
|
| }
|
|
|
| - DOMPath(const Path& path)
|
| + DOMPath2D(const Path& path)
|
| : CanvasPathMethods()
|
| {
|
| ScriptWrappable::init(this);
|
| m_path = path;
|
| }
|
|
|
| - DOMPath(DOMPath* path)
|
| + DOMPath2D(DOMPath2D* path)
|
| : CanvasPathMethods()
|
| {
|
| ScriptWrappable::init(this);
|
| m_path = path->path();
|
| }
|
|
|
| - DOMPath(const String& pathData)
|
| + DOMPath2D(const String& pathData)
|
| : CanvasPathMethods()
|
| {
|
| ScriptWrappable::init(this);
|
|
|