Bug 67252 - Improve appearance and performance of layout test results.html
Summary: Improve appearance and performance of layout test results.html
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-30 19:03 PDT by Simon Fraser (smfr)
Modified: 2011-08-31 11:57 PDT (History)
4 users (show)

See Also:


Attachments
New look with the coming patch (102.44 KB, image/png)
2011-08-30 19:03 PDT, Simon Fraser (smfr)
no flags Details
Patch (5.78 KB, patch)
2011-08-30 19:06 PDT, Simon Fraser (smfr)
abarth: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2011-08-30 19:03:00 PDT
fast/harness/results.html, which is used to display test results, has really poor behavior when viewing the zoomed pixel diffs on Mac. It's also very ugly.
Comment 1 Simon Fraser (smfr) 2011-08-30 19:03:22 PDT
Created attachment 105728 [details]
New look with the coming patch
Comment 2 Dimitri Glazkov (Google) 2011-08-30 19:06:01 PDT
Woot! smfr got a tools bug! :P
Comment 3 Simon Fraser (smfr) 2011-08-30 19:06:47 PDT
Created attachment 105729 [details]
Patch
Comment 4 Adam Barth 2011-08-30 22:27:16 PDT
Comment on attachment 105729 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=105729&action=review

Ojan should really review this patch.

> LayoutTests/fast/harness/results.html:749
> -    container.innerHTML = '<div class=label>' + title + '</div><canvas></canvas>';    
> +    container.innerHTML = '<div class="label">' + title + '</div><div class="scaled-image-container"><img src="' + url + '"></div>';    

XSS sad face
Comment 5 Adam Barth 2011-08-30 22:28:05 PDT
Comment on attachment 105729 [details]
Patch

rs=me.  Please feel encouraged to run this by Ojan before landing.
Comment 6 Ojan Vafai 2011-08-31 08:49:51 PDT
Comment on attachment 105729 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=105729&action=review

Code looks fine. Thanks for improving this. I'm not too familiar with -webkit-optimize-contrast, does it not anti-alias the zoomed image? That was the only reason I used canvas.

> LayoutTests/fast/harness/results.html:790
> +    var image = imageContainer.firstChild;

Nit: For future robustness I'd rather use imageContainer.querySelector('img').
Comment 7 Simon Fraser (smfr) 2011-08-31 11:57:03 PDT
http://trac.webkit.org/changeset/94212