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

Unified Diff: Source/core/html/canvas/Path2D.h

Issue 232913004: Use StrictTypeChecking for methods on CRC2D that accepts Path2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update some more expectations. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.idl ('k') | Source/core/html/canvas/Path2D.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/Path2D.h
diff --git a/Source/core/html/canvas/Path2D.h b/Source/core/html/canvas/Path2D.h
index 060c0a87bdd3e0cff6ab439c069a8ab4e6b36269..f09839bb1e97de9f7b05c5ba8f66f7f7b685bbf2 100644
--- a/Source/core/html/canvas/Path2D.h
+++ b/Source/core/html/canvas/Path2D.h
@@ -49,17 +49,13 @@ public:
const Path& path() const { return m_path; }
- void addPath(Path2D* path, ExceptionState& exceptionState)
+ void addPath(Path2D* path)
{
- addPath(path, 0, exceptionState);
+ addPath(path, 0);
}
- void addPath(Path2D* path, SVGMatrixTearOff* transform, ExceptionState& exceptionState)
+ void addPath(Path2D* path, SVGMatrixTearOff* transform)
{
- if (!path) {
- exceptionState.throwTypeError(ExceptionMessages::argumentNullOrIncorrectType(1, "Path"));
- return;
- }
Path src = path->path();
m_path.addPath(src, transform ? transform->value() : AffineTransform(1, 0, 0, 1, 0, 0));
}
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.idl ('k') | Source/core/html/canvas/Path2D.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698