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

Side by Side Diff: Source/core/html/canvas/Path2D.h

Issue 463543002: Oilpan: Ensure that classes with virtual trace methods always have vtables for their left-most base… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 addPath(path, 0); 55 addPath(path, 0);
56 } 56 }
57 57
58 void addPath(Path2D* path, SVGMatrixTearOff* transform) 58 void addPath(Path2D* path, SVGMatrixTearOff* transform)
59 { 59 {
60 Path src = path->path(); 60 Path src = path->path();
61 m_path.addPath(src, transform ? transform->value() : AffineTransform(1, 0, 0, 1, 0, 0)); 61 m_path.addPath(src, transform ? transform->value() : AffineTransform(1, 0, 0, 1, 0, 0));
62 } 62 }
63 63
64 virtual ~Path2D() { } 64 virtual ~Path2D() { }
65 void trace(Visitor*) { } 65 virtual void trace(Visitor*) { }
66 66
67 private: 67 private:
68 Path2D() : CanvasPathMethods() 68 Path2D() : CanvasPathMethods()
69 { 69 {
70 ScriptWrappable::init(this); 70 ScriptWrappable::init(this);
71 } 71 }
72 72
73 Path2D(const Path& path) 73 Path2D(const Path& path)
74 : CanvasPathMethods(path) 74 : CanvasPathMethods(path)
75 { 75 {
76 ScriptWrappable::init(this); 76 ScriptWrappable::init(this);
77 } 77 }
78 78
79 Path2D(Path2D* path) 79 Path2D(Path2D* path)
80 : CanvasPathMethods(path->path()) 80 : CanvasPathMethods(path->path())
81 { 81 {
82 ScriptWrappable::init(this); 82 ScriptWrappable::init(this);
83 } 83 }
84 84
85 Path2D(const String& pathData) 85 Path2D(const String& pathData)
86 : CanvasPathMethods() 86 : CanvasPathMethods()
87 { 87 {
88 ScriptWrappable::init(this); 88 ScriptWrappable::init(this);
89 buildPathFromString(pathData, m_path); 89 buildPathFromString(pathData, m_path);
90 } 90 }
91 }; 91 };
92 92
93 } 93 }
94 #endif 94 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698