Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: sky/engine/core/html/canvas/Path2D.h

Issue 706123005: Remove nop ScriptWrappable::init calls (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sky/engine/core/html/canvas/OESVertexArrayObject.cpp ('k') | sky/engine/core/html/canvas/WebGLActiveInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698