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

Side by Side Diff: chrome/test/data/dromaeo/pngfix.js

Issue 269054: Importing dromaeo performance tests to src/chrome/test/data.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/dromaeo/lib/yui-selector.js ('k') | chrome/test/data/dromaeo/reset.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 var arVersion = navigator.appVersion.split("MSIE")
3 var version = parseFloat(arVersion[1])
4
5 if ((version >= 5.5) && (document.body.filters))
6 {
7 for(var i=0; i<document.images.length; i++)
8 {
9 var img = document.images[i]
10 var imgName = img.src.toUpperCase()
11 if (imgName.indexOf('.PNG') > -1)
12 {
13 var imgID = (img.id) ? "id='" + img.id + "' " : ""
14 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
15 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
16 var imgStyle = "display:inline-block;" + img.style.cssText
17 if (img.align == "left") imgStyle = "float:left;" + imgStyle
18 if (img.align == "right") imgStyle = "float:right;" + imgStyle
19 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
20 var strNewHTML = "<span " + imgID + imgClass + imgTitle
21 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px ;" + imgStyle + ";"
22 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
23 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
24 img.outerHTML = strNewHTML
25 i = i-1
26 }
27 }
28 }
OLDNEW
« no previous file with comments | « chrome/test/data/dromaeo/lib/yui-selector.js ('k') | chrome/test/data/dromaeo/reset.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698