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

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.idl

Issue 226953004: Remove get/set currentPath in canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 void setLineDash(sequence<unrestricted float> dash); 62 void setLineDash(sequence<unrestricted float> dash);
63 sequence<unrestricted float> getLineDash(); 63 sequence<unrestricted float> getLineDash();
64 attribute unrestricted float lineDashOffset; 64 attribute unrestricted float lineDashOffset;
65 65
66 void clearRect(unrestricted float x, unrestricted float y, unrestricted floa t width, unrestricted float height); 66 void clearRect(unrestricted float x, unrestricted float y, unrestricted floa t width, unrestricted float height);
67 void fillRect(unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height); 67 void fillRect(unrestricted float x, unrestricted float y, unrestricted float width, unrestricted float height);
68 68
69 void beginPath(); 69 void beginPath();
70 70
71 attribute Path2D currentPath;
72
73 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed. 71 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed.
74 void fill(); 72 void fill();
75 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void fill(Path2D pa th); 73 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void fill(Path2D pa th);
76 [TypeChecking=Interface|Nullable] void fill(CanvasWindingRule winding); 74 [TypeChecking=Interface|Nullable] void fill(CanvasWindingRule winding);
77 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void fill(Path2D pa th, CanvasWindingRule winding); 75 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void fill(Path2D pa th, CanvasWindingRule winding);
78 void stroke(); 76 void stroke();
79 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void stroke(Path2D path); 77 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void stroke(Path2D path);
80 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed. 78 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339 000 gets fixed.
81 void clip(); 79 void clip();
82 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void clip(Path2D pa th); 80 [RuntimeEnabled=Path2D, TypeChecking=Interface|Nullable] void clip(Path2D pa th);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 [TypeChecking=Interface|Nullable, MeasureAs=CanvasRenderingContext2DDrawImag eFromRect] void drawImageFromRect( 164 [TypeChecking=Interface|Nullable, MeasureAs=CanvasRenderingContext2DDrawImag eFromRect] void drawImageFromRect(
167 HTMLImageElement? image, optional unrestricted float sx, optional unrest ricted float sy, optional unrestricted float sw, optional unrestricted float sh, 165 HTMLImageElement? image, optional unrestricted float sx, optional unrest ricted float sy, optional unrestricted float sw, optional unrestricted float sh,
168 optional unrestricted float dx, optional unrestricted float dy, optional unrestricted float dw, optional unrestricted float dh, optional DOMString compo siteOperation); 166 optional unrestricted float dx, optional unrestricted float dy, optional unrestricted float dw, optional unrestricted float dh, optional DOMString compo siteOperation);
169 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, [LegacyOverloadSt ring] optional DOMString color, optional unrestricted float alpha); 167 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, [LegacyOverloadSt ring] optional DOMString color, optional unrestricted float alpha);
170 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t grayLevel, optional unrestricted float alpha); 168 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t grayLevel, optional unrestricted float alpha);
171 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t r, unrestricted float g, unrestricted float b, unrestricted float a); 169 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t r, unrestricted float g, unrestricted float b, unrestricted float a);
172 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t c, unrestricted float m, unrestricted float y, unrestricted float k, unrestric ted float a); 170 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl oat width, unrestricted float height, unrestricted float blur, unrestricted floa t c, unrestricted float m, unrestricted float y, unrestricted float k, unrestric ted float a);
173 }; 171 };
174 172
175 CanvasRenderingContext2D implements CanvasPathMethods; 173 CanvasRenderingContext2D implements CanvasPathMethods;
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698