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

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

Issue 2829433002: DevTools: hide the replace input when it replace is disabled (Closed)
Patch Set: Created 3 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/ui/SearchableView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/SearchableView.js b/third_party/WebKit/Source/devtools/front_end/ui/SearchableView.js
index 1d19ce2425cf1d4158acfc8c002a56a2ebef52c4..3d33e23230a293790192b26aa4a91539c1544a66 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/SearchableView.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/SearchableView.js
@@ -95,7 +95,8 @@ UI.SearchableView = class extends UI.VBox {
this._searchInputElement.addEventListener('keydown', this._onSearchKeyDown.bind(this), true);
this._searchInputElement.addEventListener('input', this._onInput.bind(this), false);
- this._replaceInputElement = searchInputElements.createChild('input', 'search-replace toolbar-replace-control');
+ this._replaceInputElement =
+ searchInputElements.createChild('input', 'search-replace toolbar-replace-control hidden');
this._replaceInputElement.addEventListener('keydown', this._onReplaceKeyDown.bind(this), true);
this._replaceInputElement.placeholder = Common.UIString('Replace');
@@ -468,6 +469,7 @@ UI.SearchableView = class extends UI.VBox {
var secondRowVisible = this._replaceCheckboxElement.checked;
this._footerElementContainer.classList.toggle('replaceable', secondRowVisible);
this._buttonsContainer.classList.toggle('hidden', !secondRowVisible);
+ this._replaceInputElement.classList.toggle('hidden', !secondRowVisible);
this._replaceCheckboxElement.tabIndex = secondRowVisible ? -1 : 0;
if (secondRowVisible)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698