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

Unified Diff: ui/webui/resources/cr_elements/cr_scrollable_behavior.js

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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
Index: ui/webui/resources/cr_elements/cr_scrollable_behavior.js
diff --git a/ui/webui/resources/cr_elements/cr_scrollable_behavior.js b/ui/webui/resources/cr_elements/cr_scrollable_behavior.js
index 38eb1777fcf1e3f10af156893e37f1077c1f0bde..2a497807d95d18c97a6229e94ffbbad498bcca2e 100644
--- a/ui/webui/resources/cr_elements/cr_scrollable_behavior.js
+++ b/ui/webui/resources/cr_elements/cr_scrollable_behavior.js
@@ -101,7 +101,7 @@ var CrScrollableBehavior = {
requestAnimationFrame(function() {
var scrollableElements = this.root.querySelectorAll('[scrollable]');
for (var i = 0; i < scrollableElements.length; i++)
- this.updateScroll_(/** @type {!HTMLElement} */(scrollableElements[i]));
+ this.updateScroll_(/** @type {!HTMLElement} */ (scrollableElements[i]));
}.bind(this));
},
@@ -145,7 +145,8 @@ var CrScrollableBehavior = {
'can-scroll', scrollable.clientHeight < scrollable.scrollHeight);
scrollable.classList.toggle('is-scrolled', scrollable.scrollTop > 0);
scrollable.classList.toggle(
- 'scrolled-to-bottom', scrollable.scrollTop + scrollable.clientHeight >=
+ 'scrolled-to-bottom',
+ scrollable.scrollTop + scrollable.clientHeight >=
scrollable.scrollHeight);
},
};

Powered by Google App Engine
This is Rietveld 408576698