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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js

Issue 2609573002: Revert "DevTools: remove invalidateSize from Widget, make show/hideWidget receive no params." (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js b/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
index 08a22e26e8b5d85792c932148706544752daf450..1590d652db1631f1f8b7411f366911f7defb586b 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/FilterBar.js
@@ -95,15 +95,11 @@ UI.FilterBar = class extends UI.HBox {
}
_updateFilterBar() {
- if (!this.parentWidget())
- return;
var visible = this._alwaysShowFilters || (this._stateSetting.get() && this._enabled);
- if (visible) {
- this.showWidget();
+ this.element.classList.toggle('hidden', !visible);
+ if (visible)
this._focusTextField();
- } else {
- this.hideWidget();
- }
+ this.invalidateSize();
}
_focusTextField() {

Powered by Google App Engine
This is Rietveld 408576698