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

Unified Diff: chrome/renderer/resources/offline.js

Issue 952563003: Reinstate the error code to main content area + bug fixes on security / network interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust vertical alignment of details button, remove net error string prefix Created 5 years, 10 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
« no previous file with comments | « chrome/renderer/resources/neterror.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/offline.js
diff --git a/chrome/renderer/resources/offline.js b/chrome/renderer/resources/offline.js
index fbf46d98d03abeffbbc3989a3f30ae83926db53e..75404cc9e2618a33a09e5db79240f20345c2374d 100644
--- a/chrome/renderer/resources/offline.js
+++ b/chrome/renderer/resources/offline.js
@@ -793,6 +793,11 @@ Runner.updateCanvasScaling = function(canvas, opt_width, opt_height) {
// our canvas element.
context.scale(ratio, ratio);
return true;
+ } else if (devicePixelRatio == 1) {
+ // Reset the canvas width / height. Fixes scaling bug when the page is
+ // zoomed and the devicePixelRatio changes accordingly.
+ canvas.style.width = canvas.width + 'px';
+ canvas.style.height = canvas.height + 'px';
}
return false;
};
« no previous file with comments | « chrome/renderer/resources/neterror.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698