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

Unified Diff: third_party/WebKit/Source/core/html/ImageData.idl

Issue 2636533002: Revert of Implement color management for ImageData
Patch Set: Created 3 years, 11 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: third_party/WebKit/Source/core/html/ImageData.idl
diff --git a/third_party/WebKit/Source/core/html/ImageData.idl b/third_party/WebKit/Source/core/html/ImageData.idl
index 38051b047cbef49ce98acf3098f6448f702079d7..d52d253a70049da153f86574ce21973a3bae0ad3 100644
--- a/third_party/WebKit/Source/core/html/ImageData.idl
+++ b/third_party/WebKit/Source/core/html/ImageData.idl
@@ -27,9 +27,6 @@
*/
// https://html.spec.whatwg.org/#dom-imagedata
-// https://github.com/junov/CanvasColorSpace/blob/master/CanvasColorSpaceProposal.md#imagedata
-
-enum ImageDataColorSpace { "legacy-srgb", "srgb", "linear-rgb" };
[
Constructor(unsigned long sw, unsigned long sh),
@@ -37,13 +34,8 @@
Exposed=(Window,Worker),
RaisesException=Constructor,
] interface ImageData {
-
- [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] ImageData createImageData(unsigned long sw, unsigned long sh, ImageDataColorSpace colorSpace);
- [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] ImageData createImageData(Uint8ClampedArray data, unsigned long sw, ImageDataColorSpace colorSpace);
- [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] ImageData createImageData(Uint8ClampedArray data, unsigned long sw, unsigned long sh, ImageDataColorSpace colorSpace);
-
readonly attribute unsigned long width;
readonly attribute unsigned long height;
- readonly attribute Uint8ClampedArray data;
- readonly attribute ImageDataColorSpace colorSpace;
+ // TODO(foolip): Expose data.
+ // readonly attribute Uint8ClampedArray data;
};

Powered by Google App Engine
This is Rietveld 408576698