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

Unified Diff: third_party/WebKit/LayoutTests/images/color-profile-drag-image.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-drag-image.html
diff --git a/third_party/WebKit/LayoutTests/images/color-profile-drag-image.html b/third_party/WebKit/LayoutTests/images/color-profile-drag-image.html
index d4efe872309c858476619ff2f8897f071e5d7484..605451c31e3b945fc94acb4b87f99a58c470db04 100644
--- a/third_party/WebKit/LayoutTests/images/color-profile-drag-image.html
+++ b/third_party/WebKit/LayoutTests/images/color-profile-drag-image.html
@@ -26,20 +26,12 @@ window.onload = function() {
var image = document.querySelector('img');
image.onload = function() {
- runAfterLayoutAndPaint(window.testRunner ? changeColorProfile : profileChanged);
+ runAfterLayoutAndPaint(drawImagePatternToCanvas);
};
image.src = 'resources/red-at-12-oclock-with-color-profile.jpg';
};
-function changeColorProfile() {
- window.testRunner.setColorProfile('colorSpin', profileChanged);
-}
-
-function profileChanged() {
- setTimeout(drawImagePatternToCanvas, 0);
-}
-
function drawImagePatternToCanvas() {
var canvas = document.querySelector('canvas');
var ctx = canvas.getContext('2d');

Powered by Google App Engine
This is Rietveld 408576698