| Index: third_party/WebKit/LayoutTests/images/resources/color-checker-munsell-chart.js
|
| diff --git a/third_party/WebKit/LayoutTests/images/resources/color-checker-munsell-chart.js b/third_party/WebKit/LayoutTests/images/resources/color-checker-munsell-chart.js
|
| index 2f494b316a5d03ca9371c20f55af00922a007951..384f04c186dbde7a48b29d5620bf295c3aaf447c 100644
|
| --- a/third_party/WebKit/LayoutTests/images/resources/color-checker-munsell-chart.js
|
| +++ b/third_party/WebKit/LayoutTests/images/resources/color-checker-munsell-chart.js
|
| @@ -6,23 +6,12 @@ function testImageColors(source) {
|
| var image = document.querySelector('img');
|
|
|
| image.onload = function() {
|
| - runAfterLayoutAndPaint(window.testRunner ? changeColorProfile : profileChanged);
|
| + runAfterLayoutAndPaint(function () { setTimeout(drawImageToCanvas, 0) });
|
| };
|
|
|
| image.src = source;
|
| }
|
|
|
| -function changeColorProfile() {
|
| - /* The test image contains the Munsell colors in a known color space. Convert
|
| - * the colors to sRGB color space and test the transformed color accuracy.
|
| - */
|
| - window.testRunner.setColorProfile('sRGB', profileChanged);
|
| -}
|
| -
|
| -function profileChanged() {
|
| - setTimeout(drawImageToCanvas, 0);
|
| -}
|
| -
|
| function drawImageToCanvas() {
|
| var image = document.querySelector('img');
|
|
|
|
|