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

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

Issue 178673002: Rename Path to Path2D (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@path
Patch Set: 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.idl
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.idl b/Source/core/html/canvas/CanvasRenderingContext2D.idl
index 223ea6f57cdbf673d544a2261e0d8d2eac4db534..a9f37735194a2108f2b70a47e5c416ae9b6cd965 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.idl
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.idl
@@ -63,7 +63,7 @@ interface CanvasRenderingContext2D : CanvasRenderingContext {
void beginPath();
- attribute Path currentPath;
+ attribute Path2D currentPath;
// FIXME: These methods should be shared with CanvasRenderingContext2D in the CanvasPathMethods interface.
void closePath();
@@ -78,16 +78,16 @@ interface CanvasRenderingContext2D : CanvasRenderingContext {
// FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339000 gets fixed.
void fill();
- [RuntimeEnabled=ExperimentalCanvasFeatures] void fill(Path path);
+ [RuntimeEnabled=ExperimentalCanvasFeatures] void fill(Path2D path);
void fill(CanvasWindingRule winding);
- [RuntimeEnabled=ExperimentalCanvasFeatures] void fill(Path path, CanvasWindingRule winding);
+ [RuntimeEnabled=ExperimentalCanvasFeatures] void fill(Path2D path, CanvasWindingRule winding);
void stroke();
- [RuntimeEnabled=ExperimentalCanvasFeatures] void stroke(Path path);
+ [RuntimeEnabled=ExperimentalCanvasFeatures] void stroke(Path2D path);
// FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339000 gets fixed.
void clip();
- [RuntimeEnabled=ExperimentalCanvasFeatures] void clip(Path path);
+ [RuntimeEnabled=ExperimentalCanvasFeatures] void clip(Path2D path);
void clip(CanvasWindingRule winding);
- [RuntimeEnabled=ExperimentalCanvasFeatures] void clip(Path path, CanvasWindingRule winding);
+ [RuntimeEnabled=ExperimentalCanvasFeatures] void clip(Path2D path, CanvasWindingRule winding);
boolean isPointInPath(float x, float y, optional CanvasWindingRule winding);
boolean isPointInStroke(float x, float y);

Powered by Google App Engine
This is Rietveld 408576698