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

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

Issue 2875193002: DevTools: update text inputs to new style (Closed)
Patch Set: ac 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: third_party/WebKit/Source/devtools/front_end/ui/ListWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ListWidget.js b/third_party/WebKit/Source/devtools/front_end/ui/ListWidget.js
index d96d1c66e543bdeb8cd738f0a64ae7a0299c4f2d..ad068357da715226bd0b57b3d1fc0066d7491e96 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/ListWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ListWidget.js
@@ -325,8 +325,7 @@ UI.ListWidget.Editor = class {
* @return {!HTMLInputElement}
*/
createInput(name, type, title, validator) {
- var input = /** @type {!HTMLInputElement} */ (createElement('input'));
- input.type = type;
+ var input = /** @type {!HTMLInputElement} */ (UI.createInput('', type));
input.placeholder = title;
input.addEventListener('input', this._validateControls.bind(this, false), false);
input.addEventListener('blur', this._validateControls.bind(this, false), false);

Powered by Google App Engine
This is Rietveld 408576698