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

Unified Diff: chrome/browser/resources/help/help_base_page.js

Issue 49903004: More s/body/documentElement/ as body.scroll{...} is deprecated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « no previous file | chrome/browser/resources/options/options_page.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/help/help_base_page.js
diff --git a/chrome/browser/resources/help/help_base_page.js b/chrome/browser/resources/help/help_base_page.js
index 8ebd48e7f01576802b14f5c48fd9f9ccdc0df179..f07a9f1e0cd58df9eaf3c7ef0ce582f47325e0cf 100644
--- a/chrome/browser/resources/help/help_base_page.js
+++ b/chrome/browser/resources/help/help_base_page.js
@@ -118,10 +118,10 @@ cr.define('help', function() {
if (freeze) {
this.lastScrollTop = document.documentElement.scrollTop;
document.body.style.overflow = 'hidden';
- window.scroll(document.body.scrollLeft, 0);
+ window.scroll(document.documentElement.scrollLeft, 0);
} else {
document.body.style.overflow = 'auto';
- window.scroll(document.body.scrollLeft, this.lastScrollTop);
+ window.scroll(document.documentElement.scrollLeft, this.lastScrollTop);
}
},
« no previous file with comments | « no previous file | chrome/browser/resources/options/options_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698