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

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

Issue 179493002: Add null check to fill, stroke, clip method (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: expected.txt Created 6 years, 10 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
Index: Source/core/html/canvas/CanvasRenderingContext2D.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.h b/Source/core/html/canvas/CanvasRenderingContext2D.h
index 40cb44c2c38c1a8afb11633024f767dc7ed0a7a0..088158f9437a44daa963d36464415d22ec0a6abd 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -148,11 +148,13 @@ public:
PassRefPtr<DOMPath> currentPath();
void setCurrentPath(DOMPath*);
void fill(const String& winding = "nonzero");
- void fill(DOMPath*, const String& winding = "nonzero");
+ void fill(DOMPath*, ExceptionState&);
+ void fill(DOMPath*, const String& winding, ExceptionState&);
void stroke();
- void stroke(DOMPath*);
+ void stroke(DOMPath*, ExceptionState&);
void clip(const String& winding = "nonzero");
- void clip(DOMPath*, const String& winding = "nonzero");
+ void clip(DOMPath*, ExceptionState&);
+ void clip(DOMPath*, const String& winding, ExceptionState&);
bool isPointInPath(const float x, const float y, const String& winding = "nonzero");
bool isPointInStroke(const float x, const float y);

Powered by Google App Engine
This is Rietveld 408576698