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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.idl

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.cpp ('k') | Source/core/html/canvas/Path2D.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/CanvasRenderingContext2D.idl
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.idl b/Source/core/html/canvas/CanvasRenderingContext2D.idl
index 21d9ba1e50c3716dceb722be6725d81769a7e558..9a3bdce2ba50e9fb57ad0e19a858c87a7f5c3cc6 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.idl
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.idl
@@ -69,27 +69,27 @@ interface CanvasRenderingContext2D {
// FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339000 gets fixed.
void fill();
- [RuntimeEnabled=Path2D, RaisesException] void fill(Path2D? path);
- void fill(CanvasWindingRule winding);
- [RuntimeEnabled=Path2D, RaisesException] void fill(Path2D? path, CanvasWindingRule winding);
+ [RuntimeEnabled=Path2D, StrictTypeChecking] void fill(Path2D path);
+ [StrictTypeChecking] void fill(CanvasWindingRule winding);
+ [RuntimeEnabled=Path2D, StrictTypeChecking] void fill(Path2D path, CanvasWindingRule winding);
void stroke();
- [RuntimeEnabled=Path2D, RaisesException] void stroke(Path2D? path);
+ [RuntimeEnabled=Path2D, StrictTypeChecking] void stroke(Path2D path);
// FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339000 gets fixed.
void clip();
- [RuntimeEnabled=Path2D, RaisesException] void clip(Path2D? path);
- void clip(CanvasWindingRule winding);
- [RuntimeEnabled=Path2D, RaisesException] void clip(Path2D? path, CanvasWindingRule winding);
+ [RuntimeEnabled=Path2D, StrictTypeChecking] void clip(Path2D path);
+ [StrictTypeChecking] void clip(CanvasWindingRule winding);
+ [RuntimeEnabled=Path2D, StrictTypeChecking] void clip(Path2D path, CanvasWindingRule winding);
// FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339000 gets fixed.
boolean isPointInPath(float x, float y);
- [RuntimeEnabled=Path2D, RaisesException] boolean isPointInPath(Path2D? path, float x, float y);
- boolean isPointInPath(float x, float y, CanvasWindingRule winding);
- [RuntimeEnabled=Path2D, RaisesException] boolean isPointInPath(Path2D? path, float x, float y, CanvasWindingRule winding);
+ [RuntimeEnabled=Path2D, StrictTypeChecking] boolean isPointInPath(Path2D path, float x, float y);
+ [StrictTypeChecking] boolean isPointInPath(float x, float y, CanvasWindingRule winding);
+ [RuntimeEnabled=Path2D, StrictTypeChecking] boolean isPointInPath(Path2D path, float x, float y, CanvasWindingRule winding);
boolean isPointInStroke(float x, float y);
- [RuntimeEnabled=Path2D, RaisesException] boolean isPointInStroke(Path2D? path, float x, float y);
+ [RuntimeEnabled=Path2D, StrictTypeChecking] boolean isPointInStroke(Path2D path, float x, float y);
[RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView();
- [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void scrollPathIntoView(Path2D? path);
+ [RuntimeEnabled=ExperimentalCanvasFeatures, StrictTypeChecking] void scrollPathIntoView(Path2D path);
// text
attribute DOMString font;
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/canvas/Path2D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698