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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-out-of-bounds-src.html

Issue 2522693002: Color correct ImageBitmap(HTMLImageElement*) constructor (Closed)
Patch Set: Removing ImageDecoder::globalTargetColorSpace() calls for now Created 4 years, 1 month 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/LayoutTests/fast/canvas/canvas-createImageBitmap-out-of-bounds-src.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-out-of-bounds-src.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-out-of-bounds-src.html
index a307dd8ad45a63619fc73c6ecd7452afdb8e2122..f5935cc146f7705b13029d77d6c582a7a20626e7 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-out-of-bounds-src.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-out-of-bounds-src.html
@@ -34,10 +34,10 @@ var ctx3 = canvas3.getContext('2d');
var ctx4 = canvas4.getContext('2d');
function imageLoaded() {
- createImageBitmap(img).then(imageBitmapCallback(ctx1), shouldNotBeCalled);
- createImageBitmap(img, -50, -50, 100, 100).then(imageBitmapCallback(ctx2), shouldNotBeCalled);
- createImageBitmap(img, 50, 50, 100, 100).then(imageBitmapCallback(ctx3), shouldNotBeCalled);
- createImageBitmap(img, -100, -100, 300, 300).then(imageBitmapCallback(ctx4), shouldNotBeCalled);
+ createImageBitmap(img, {colorSpaceConversion: "none"}).then(imageBitmapCallback(ctx1), shouldNotBeCalled);
+ createImageBitmap(img, -50, -50, 100, 100, {colorSpaceConversion: "none"}).then(imageBitmapCallback(ctx2), shouldNotBeCalled);
+ createImageBitmap(img, 50, 50, 100, 100, {colorSpaceConversion: "none"}).then(imageBitmapCallback(ctx3), shouldNotBeCalled);
+ createImageBitmap(img, -100, -100, 300, 300, {colorSpaceConversion: "none"}).then(imageBitmapCallback(ctx4), shouldNotBeCalled);
}
var pending = 0;
@@ -61,4 +61,4 @@ function imageBitmapCallback(ctx) {
}
</script>
-</body></html>
+</body></html>

Powered by Google App Engine
This is Rietveld 408576698