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

Side by Side Diff: LayoutTests/fast/harness/results.html

Issue 238263005: Unprefix webkitImageSmoothingEnabled -> imageSmoothingEnabled. As webkitImageSmoothingEnabled is re… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing some errors Created 6 years, 8 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 html { 3 html {
4 height: 100%; 4 height: 100%;
5 } 5 }
6 body { 6 body {
7 margin: 0; 7 margin: 0;
8 font-family: Helvetica, sans-serif; 8 font-family: Helvetica, sans-serif;
9 font-size: 11pt; 9 font-size: 11pt;
10 display: -webkit-flex; 10 display: -webkit-flex;
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 image.onload = function() { 877 image.onload = function() {
878 PixelZoomer._draw(imageContainer); 878 PixelZoomer._draw(imageContainer);
879 }; 879 };
880 return; 880 return;
881 } 881 }
882 882
883 canvas.width = imageContainer.clientWidth; 883 canvas.width = imageContainer.clientWidth;
884 canvas.height = imageContainer.clientHeight; 884 canvas.height = imageContainer.clientHeight;
885 885
886 var ctx = canvas.getContext('2d'); 886 var ctx = canvas.getContext('2d');
887 ctx.webkitImageSmoothingEnabled = false;
888 ctx.mozImageSmoothingEnabled = false; 887 ctx.mozImageSmoothingEnabled = false;
889 ctx.imageSmoothingEnabled = false; 888 ctx.imageSmoothingEnabled = false;
890 ctx.translate(imageContainer.clientWidth / 2, imageContainer.clientHeight / 2); 889 ctx.translate(imageContainer.clientWidth / 2, imageContainer.clientHeight / 2);
891 ctx.translate(-PixelZoomer._percentX * kZoomedResultWidth, -PixelZoomer._per centY * kZoomedResultHeight); 890 ctx.translate(-PixelZoomer._percentX * kZoomedResultWidth, -PixelZoomer._per centY * kZoomedResultHeight);
892 ctx.strokeRect(-1.5, -1.5, kZoomedResultWidth + 2, kZoomedResultHeight + 2); 891 ctx.strokeRect(-1.5, -1.5, kZoomedResultWidth + 2, kZoomedResultHeight + 2);
893 ctx.scale(PixelZoomer._zoomFactor, PixelZoomer._zoomFactor); 892 ctx.scale(PixelZoomer._zoomFactor, PixelZoomer._zoomFactor);
894 ctx.drawImage(image, 0, 0); 893 ctx.drawImage(image, 0, 0);
895 } 894 }
896 895
897 PixelZoomer._drawAll = function() 896 PixelZoomer._drawAll = function()
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1382 updateTestlistCounts(); 1381 updateTestlistCounts();
1383 1382
1384 TestNavigator.reset(); 1383 TestNavigator.reset();
1385 OptionWriter.apply(); 1384 OptionWriter.apply();
1386 } 1385 }
1387 </script> 1386 </script>
1388 <!-- HACK: when json_results_test.js is included, loading this page runs the tes ts. 1387 <!-- HACK: when json_results_test.js is included, loading this page runs the tes ts.
1389 It is not copied to the layout-test-results output directory. --> 1388 It is not copied to the layout-test-results output directory. -->
1390 <script src="resources/results-test.js"></script> 1389 <script src="resources/results-test.js"></script>
1391 <body onload="generatePage()"></body> 1390 <body onload="generatePage()"></body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698