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

Unified Diff: chrome/browser/resources/settings/settings_page/main_page_behavior.js

Issue 2184863002: MD Settings: Remove paper-header-panel, use IntersectionObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve conflicts Created 3 years, 9 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 | « no previous file | chrome/browser/resources/settings/settings_page_css.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/settings_page/main_page_behavior.js
diff --git a/chrome/browser/resources/settings/settings_page/main_page_behavior.js b/chrome/browser/resources/settings/settings_page/main_page_behavior.js
index a42834cca9cad57545a51f0a153f2527a27bbd93..9250fd23b90cb69d34ea3dc2db0cdc564a234061 100644
--- a/chrome/browser/resources/settings/settings_page/main_page_behavior.js
+++ b/chrome/browser/resources/settings/settings_page/main_page_behavior.js
@@ -41,10 +41,7 @@ var MainPageBehaviorImpl = {
/** @override */
attached: function() {
- if (this.domHost && this.domHost.parentNode.tagName == 'PAPER-HEADER-PANEL')
- this.scroller = this.domHost.parentNode.scroller;
- else
- this.scroller = document.body; // Used in unit tests.
+ this.scroller = this.domHost ? this.domHost.parentNode : document.body;
},
/**
« no previous file with comments | « no previous file | chrome/browser/resources/settings/settings_page_css.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698