| 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 21 matching lines...) Expand all Loading... |
| 32 #include "core/html/canvas/CanvasPathMethods.h" | 32 #include "core/html/canvas/CanvasPathMethods.h" |
| 33 #include "core/svg/SVGMatrixTearOff.h" | 33 #include "core/svg/SVGMatrixTearOff.h" |
| 34 #include "core/svg/SVGPathUtilities.h" | 34 #include "core/svg/SVGPathUtilities.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" | 37 #include "wtf/PassRefPtr.h" |
| 38 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class Path2D FINAL : public RefCountedWillBeGarbageCollectedFinalized<Path2D>, p
ublic CanvasPathMethods, public ScriptWrappable { | 42 class Path2D final : public RefCountedWillBeGarbageCollectedFinalized<Path2D>, p
ublic CanvasPathMethods, public ScriptWrappable { |
| 43 DEFINE_WRAPPERTYPEINFO(); | 43 DEFINE_WRAPPERTYPEINFO(); |
| 44 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 44 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| 45 WTF_MAKE_NONCOPYABLE(Path2D); | 45 WTF_MAKE_NONCOPYABLE(Path2D); |
| 46 public: | 46 public: |
| 47 static PassRefPtrWillBeRawPtr<Path2D> create() { return adoptRefWillBeNoop(n
ew Path2D); } | 47 static PassRefPtrWillBeRawPtr<Path2D> create() { return adoptRefWillBeNoop(n
ew Path2D); } |
| 48 static PassRefPtrWillBeRawPtr<Path2D> create(const String& pathData) { retur
n adoptRefWillBeNoop(new Path2D(pathData)); } | 48 static PassRefPtrWillBeRawPtr<Path2D> create(const String& pathData) { retur
n adoptRefWillBeNoop(new Path2D(pathData)); } |
| 49 static PassRefPtrWillBeRawPtr<Path2D> create(Path2D* path) { return adoptRef
WillBeNoop(new Path2D(path)); } | 49 static PassRefPtrWillBeRawPtr<Path2D> create(Path2D* path) { return adoptRef
WillBeNoop(new Path2D(path)); } |
| 50 | 50 |
| 51 static PassRefPtrWillBeRawPtr<Path2D> create(const Path& path) { return adop
tRefWillBeNoop(new Path2D(path)); } | 51 static PassRefPtrWillBeRawPtr<Path2D> create(const Path& path) { return adop
tRefWillBeNoop(new Path2D(path)); } |
| 52 | 52 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 78 Path2D(const String& pathData) | 78 Path2D(const String& pathData) |
| 79 : CanvasPathMethods() | 79 : CanvasPathMethods() |
| 80 { | 80 { |
| 81 buildPathFromString(pathData, m_path); | 81 buildPathFromString(pathData, m_path); |
| 82 } | 82 } |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace blink | 85 } // namespace blink |
| 86 | 86 |
| 87 #endif // Path2D_h | 87 #endif // Path2D_h |
| OLD | NEW |