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

Unified Diff: third_party/WebKit/LayoutTests/images/color-profile-image-canvas.html

Issue 2938543003: Remove almost all Javascript calls to setColorProfile (Closed)
Patch Set: Created 3 years, 6 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/LayoutTests/images/color-profile-image-canvas.html
diff --git a/third_party/WebKit/LayoutTests/images/color-profile-image-canvas.html b/third_party/WebKit/LayoutTests/images/color-profile-image-canvas.html
index c85e2eae5e60cf694c207a89bfb44e8130a873d1..cf89af030347932b5ac1636f0d69aebcea965f21 100644
--- a/third_party/WebKit/LayoutTests/images/color-profile-image-canvas.html
+++ b/third_party/WebKit/LayoutTests/images/color-profile-image-canvas.html
@@ -18,20 +18,12 @@ window.onload = function() {
var image = document.querySelector('img');
image.onload = function() {
- runAfterLayoutAndPaint(window.testRunner ? changeColorProfile : profileChanged);
+ runAfterLayoutAndPaint(drawImageToCanvas);
};
image.src = 'resources/red-at-12-oclock-with-color-profile.jpg';
};
-function changeColorProfile() {
- window.testRunner.setColorProfile('sRGB', profileChanged);
-}
-
-function profileChanged() {
- setTimeout(drawImageToCanvas, 0);
-}
-
function drawImageToCanvas() {
var canvas = document.querySelector('canvas');
canvas.getContext('2d').clearRect(0, 0, canvas.width = 380, canvas.height = 380);

Powered by Google App Engine
This is Rietveld 408576698