| Index: Source/core/html/canvas/DOMPath.h
|
| diff --git a/Source/core/html/canvas/DOMPath.h b/Source/core/html/canvas/DOMPath.h
|
| index abb01a6fd71745ea202006276c032113dc686b11..6108057e0455a2510691a9e48754bf9c4ecc940e 100644
|
| --- a/Source/core/html/canvas/DOMPath.h
|
| +++ b/Source/core/html/canvas/DOMPath.h
|
| @@ -30,6 +30,7 @@
|
|
|
| #include "bindings/v8/ScriptWrappable.h"
|
| #include "core/html/canvas/CanvasPathMethods.h"
|
| +#include "core/svg/SVGMatrix.h"
|
| #include "core/svg/SVGPathUtilities.h"
|
| #include "wtf/PassRefPtr.h"
|
| #include "wtf/RefCounted.h"
|
| @@ -48,6 +49,12 @@ public:
|
| const Path& path() const { return m_path; }
|
|
|
| virtual ~DOMPath() { }
|
| +
|
| + void addPath(DOMPath* path, const SVGMatrix& transform)
|
| + {
|
| + Path src = path->path();
|
| + m_path.addPath(src, transform);
|
| + }
|
| private:
|
| DOMPath() : CanvasPathMethods()
|
| {
|
| @@ -55,17 +62,15 @@ private:
|
| }
|
|
|
| DOMPath(const Path& path)
|
| - : CanvasPathMethods()
|
| + : CanvasPathMethods(path)
|
| {
|
| ScriptWrappable::init(this);
|
| - m_path = path;
|
| }
|
|
|
| DOMPath(DOMPath* path)
|
| - : CanvasPathMethods()
|
| + : CanvasPathMethods(path->path())
|
| {
|
| ScriptWrappable::init(this);
|
| - m_path = path->path();
|
| }
|
|
|
| DOMPath(const String& pathData)
|
|
|