| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 { | 53 { |
| 54 m_path.addPath(path->path(), AffineTransform(1, 0, 0, 1, 0, 0)); | 54 m_path.addPath(path->path(), AffineTransform(1, 0, 0, 1, 0, 0)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 virtual ~Path2D() { } | 57 virtual ~Path2D() { } |
| 58 void trace(Visitor*) { } | 58 void trace(Visitor*) { } |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 Path2D() : CanvasPathMethods() | 61 Path2D() : CanvasPathMethods() |
| 62 { | 62 { |
| 63 ScriptWrappable::init(this); | |
| 64 } | 63 } |
| 65 | 64 |
| 66 Path2D(const Path& path) | 65 Path2D(const Path& path) |
| 67 : CanvasPathMethods(path) | 66 : CanvasPathMethods(path) |
| 68 { | 67 { |
| 69 ScriptWrappable::init(this); | |
| 70 } | 68 } |
| 71 | 69 |
| 72 Path2D(Path2D* path) | 70 Path2D(Path2D* path) |
| 73 : CanvasPathMethods(path->path()) | 71 : CanvasPathMethods(path->path()) |
| 74 { | 72 { |
| 75 ScriptWrappable::init(this); | |
| 76 } | 73 } |
| 77 }; | 74 }; |
| 78 | 75 |
| 79 } // namespace blink | 76 } // namespace blink |
| 80 | 77 |
| 81 #endif // Path2D_h | 78 #endif // Path2D_h |
| OLD | NEW |