| 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);
|
|
|