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

Unified Diff: chrome/browser/resources/options/options_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 | « chrome/browser/resources/help/help_base_page.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/options_page.js
diff --git a/chrome/browser/resources/options/options_page.js b/chrome/browser/resources/options/options_page.js
index 2d0583f02a0b2d15a6b0df99449515b1ebbb877c..2bb3886947d94c979be6d04002d39dc4ed338c70 100644
--- a/chrome/browser/resources/options/options_page.js
+++ b/chrome/browser/resources/options/options_page.js
@@ -204,7 +204,7 @@ cr.define('options', function() {
var container = $('page-container');
var scrollTop = container.oldScrollTop || 0;
container.oldScrollTop = undefined;
- window.scroll(document.body.scrollLeft, scrollTop);
+ window.scroll(document.documentElement.scrollLeft, scrollTop);
};
/**
@@ -704,7 +704,7 @@ cr.define('options', function() {
e.style.right = OptionsPage.horizontalOffset + 'px';
} else {
e.style.left = OptionsPage.horizontalOffset -
- document.body.scrollLeft + 'px';
+ document.documentElement.scrollLeft + 'px';
}
};
« no previous file with comments | « chrome/browser/resources/help/help_base_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698