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 16 matching lines...) Expand all Loading... |
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" | 31 #include "bindings/core/v8/ScriptWrappable.h" |
32 #include "core/svg/SVGMatrixTearOff.h" | 32 #include "core/svg/SVGMatrixTearOff.h" |
33 #include "core/svg/SVGPathUtilities.h" | 33 #include "core/svg/SVGPathUtilities.h" |
34 #include "modules/canvas2d/CanvasPathMethods.h" | 34 #include "modules/canvas2d/CanvasPathMethods.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 #include "wtf/PassRefPtr.h" | |
38 #include "wtf/RefCounted.h" | |
39 | 37 |
40 namespace blink { | 38 namespace blink { |
41 | 39 |
42 class Path2D final : public GarbageCollectedFinalized<Path2D>, public CanvasPath
Methods, public ScriptWrappable { | 40 class Path2D final : public GarbageCollectedFinalized<Path2D>, public CanvasPath
Methods, public ScriptWrappable { |
43 DEFINE_WRAPPERTYPEINFO(); | 41 DEFINE_WRAPPERTYPEINFO(); |
44 WTF_MAKE_NONCOPYABLE(Path2D); | 42 WTF_MAKE_NONCOPYABLE(Path2D); |
45 public: | 43 public: |
46 static Path2D* create() { return new Path2D; } | 44 static Path2D* create() { return new Path2D; } |
47 static Path2D* create(const String& pathData) { return new Path2D(pathData);
} | 45 static Path2D* create(const String& pathData) { return new Path2D(pathData);
} |
48 static Path2D* create(Path2D* path) { return new Path2D(path); } | 46 static Path2D* create(Path2D* path) { return new Path2D(path); } |
(...skipping 27 matching lines...) Expand all Loading... |
76 Path2D(const String& pathData) | 74 Path2D(const String& pathData) |
77 : CanvasPathMethods() | 75 : CanvasPathMethods() |
78 { | 76 { |
79 buildPathFromString(pathData, m_path); | 77 buildPathFromString(pathData, m_path); |
80 } | 78 } |
81 }; | 79 }; |
82 | 80 |
83 } // namespace blink | 81 } // namespace blink |
84 | 82 |
85 #endif // Path2D_h | 83 #endif // Path2D_h |
OLD | NEW |