| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012, 2013 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2012, 2013 Adobe Systems Incorporated. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
| 23 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | 23 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
| 24 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 24 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 25 * SUCH DAMAGE. | 25 * SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef Path2D_h | 28 #ifndef Path2D_h |
| 29 #define Path2D_h | 29 #define Path2D_h |
| 30 | 30 |
| 31 #include "bindings/core/v8/ScriptWrappable.h" | |
| 32 #include "core/svg/SVGMatrixTearOff.h" | 31 #include "core/svg/SVGMatrixTearOff.h" |
| 33 #include "core/svg/SVGPathUtilities.h" | 32 #include "core/svg/SVGPathUtilities.h" |
| 34 #include "modules/canvas2d/CanvasPath.h" | 33 #include "modules/canvas2d/CanvasPath.h" |
| 34 #include "platform/bindings/ScriptWrappable.h" |
| 35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 36 #include "platform/transforms/AffineTransform.h" | 36 #include "platform/transforms/AffineTransform.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class MODULES_EXPORT Path2D final : public GarbageCollectedFinalized<Path2D>, | 40 class MODULES_EXPORT Path2D final : public GarbageCollectedFinalized<Path2D>, |
| 41 public CanvasPath, | 41 public CanvasPath, |
| 42 public ScriptWrappable { | 42 public ScriptWrappable { |
| 43 DEFINE_WRAPPERTYPEINFO(); | 43 DEFINE_WRAPPERTYPEINFO(); |
| 44 WTF_MAKE_NONCOPYABLE(Path2D); | 44 WTF_MAKE_NONCOPYABLE(Path2D); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 72 Path2D(Path2D* path) : CanvasPath(path->GetPath()) {} | 72 Path2D(Path2D* path) : CanvasPath(path->GetPath()) {} |
| 73 | 73 |
| 74 Path2D(const String& path_data) : CanvasPath() { | 74 Path2D(const String& path_data) : CanvasPath() { |
| 75 BuildPathFromString(path_data, path_); | 75 BuildPathFromString(path_data, path_); |
| 76 } | 76 } |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif // Path2D_h | 81 #endif // Path2D_h |
| OLD | NEW |