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

Unified Diff: third_party/WebKit/Source/devtools/front_end/inline_editor/CSSShadowEditor.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/inline_editor/CSSShadowEditor.js
diff --git a/third_party/WebKit/Source/devtools/front_end/inline_editor/CSSShadowEditor.js b/third_party/WebKit/Source/devtools/front_end/inline_editor/CSSShadowEditor.js
index f8c0f18897c57fe58ec9bdc6e399a42b86caa35c..51c6f56fb26bd84c5dfe67e23962a1f01640ff1e 100644
--- a/third_party/WebKit/Source/devtools/front_end/inline_editor/CSSShadowEditor.js
+++ b/third_party/WebKit/Source/devtools/front_end/inline_editor/CSSShadowEditor.js
@@ -52,8 +52,8 @@ InlineEditor.CSSShadowEditor = class extends UI.VBox {
var label = field.createChild('label', 'shadow-editor-label');
label.textContent = propertyName;
label.setAttribute('for', propertyName);
- var textInput = field.createChild('input', 'shadow-editor-text-input');
- textInput.type = 'text';
+ var textInput = UI.createInput('shadow-editor-text-input', 'text');
+ field.appendChild(textInput);
textInput.id = propertyName;
textInput.addEventListener('keydown', this._handleValueModification.bind(this), false);
textInput.addEventListener('mousewheel', this._handleValueModification.bind(this), false);

Powered by Google App Engine
This is Rietveld 408576698