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

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

Issue 206333004: Update IDL to 1847 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Add new files Created 6 years, 9 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 | « core/html/canvas/ANGLEInstancedArrays.idl ('k') | core/html/canvas/DataView.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/html/canvas/CanvasRenderingContext2D.idl
diff --git a/core/html/canvas/CanvasRenderingContext2D.idl b/core/html/canvas/CanvasRenderingContext2D.idl
index 1c243a6b4a05a2229f0cc902b6d2d247d4155fed..d99a6a07c70e63980e4b6f616949681725ca2627 100644
--- a/core/html/canvas/CanvasRenderingContext2D.idl
+++ b/core/html/canvas/CanvasRenderingContext2D.idl
@@ -58,10 +58,6 @@ interface CanvasRenderingContext2D : CanvasRenderingContext {
sequence<float> getLineDash();
attribute float lineDashOffset;
- // FIXME: These attributes should be implemented.
- // [Custom] attribute Array webkitLineDash;
- // attribute float webkitLineDashOffset;
-
void clearRect(float x, float y, float width, float height);
void fillRect(float x, float y, float width, float height);
@@ -78,7 +74,7 @@ interface CanvasRenderingContext2D : CanvasRenderingContext {
[RaisesException] void arcTo(float x1, float y1, float x2, float y2, float radius);
void rect(float x, float y, float width, float height);
[RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise);
- [RaisesException] void ellipse(float x, float y, float radiusX, float radiusY, float rotation, float startAngle, float endAngle, boolean anticlockwise);
+ [RaisesException] void ellipse(float x, float y, float radiusX, float radiusY, float rotation, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise);
void fill(optional CanvasWindingRule winding);
void stroke();
@@ -146,8 +142,8 @@ interface CanvasRenderingContext2D : CanvasRenderingContext {
[RaisesException] void putImageData(ImageData? imagedata, float dx, float dy);
[RaisesException] void putImageData(ImageData? imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight);
- [RaisesException] void webkitPutImageDataHD(ImageData? imagedata, float dx, float dy);
- [RaisesException] void webkitPutImageDataHD(ImageData? imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight);
+ [RaisesException, DeprecateAs=PrefixedPutImageDataHD] void webkitPutImageDataHD(ImageData? imagedata, float dx, float dy);
+ [RaisesException, DeprecateAs=PrefixedPutImageDataHD] void webkitPutImageDataHD(ImageData? imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight);
[RaisesException] CanvasPattern createPattern(HTMLCanvasElement? canvas, [TreatNullAs=NullString] DOMString repetitionType);
[RaisesException] CanvasPattern createPattern(HTMLImageElement? image, [TreatNullAs=NullString] DOMString repetitionType);
@@ -160,7 +156,7 @@ interface CanvasRenderingContext2D : CanvasRenderingContext {
// pixel manipulation
[RaisesException] ImageData getImageData(float sx, float sy, float sw, float sh);
- [RaisesException] ImageData webkitGetImageDataHD(float sx, float sy, float sw, float sh);
+ [RaisesException, DeprecateAs=PrefixedGetImageDataHD] ImageData webkitGetImageDataHD(float sx, float sy, float sw, float sh);
// Focus rings
[RuntimeEnabled=ExperimentalCanvasFeatures] void drawSystemFocusRing(Element element);
@@ -168,8 +164,8 @@ interface CanvasRenderingContext2D : CanvasRenderingContext {
readonly attribute float webkitBackingStorePixelRatio;
- [ImplementedAs=imageSmoothingEnabled] attribute boolean webkitImageSmoothingEnabled;
- attribute boolean imageSmoothingEnabled;
+ [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnabled] attribute boolean webkitImageSmoothingEnabled;
+ [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothingEnabled;
Canvas2DContextAttributes getContextAttributes();
};
« no previous file with comments | « core/html/canvas/ANGLEInstancedArrays.idl ('k') | core/html/canvas/DataView.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698