| Index: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
|
| index 0aefce0e9ee7ca8e81191c3d3af76f500165caa0..2ad4f24efae5953f324ae256fb2c297b3b21c5bd 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
|
| @@ -93,9 +93,8 @@ Emulation.DeviceModeToolbar = class {
|
| * @param {!UI.Toolbar} toolbar
|
| */
|
| _fillMainToolbar(toolbar) {
|
| - var widthInput = createElementWithClass('input', 'device-mode-size-input');
|
| + var widthInput = UI.createInput('device-mode-size-input', 'text');
|
| widthInput.maxLength = 4;
|
| - widthInput.type = 'text';
|
| widthInput.title = Common.UIString('Width');
|
| this._updateWidthInput =
|
| UI.bindInput(widthInput, this._applyWidth.bind(this), Emulation.DeviceModeModel.deviceSizeValidator, true);
|
| @@ -108,9 +107,8 @@ Emulation.DeviceModeToolbar = class {
|
| this._xItem = this._wrapToolbarItem(xElement);
|
| toolbar.appendToolbarItem(this._xItem);
|
|
|
| - var heightInput = createElementWithClass('input', 'device-mode-size-input');
|
| + var heightInput = UI.createInput('device-mode-size-input', 'text');
|
| heightInput.maxLength = 4;
|
| - heightInput.type = 'text';
|
| heightInput.title = Common.UIString('Height (leave empty for full)');
|
| this._updateHeightInput = UI.bindInput(heightInput, this._applyHeight.bind(this), validateHeight, true);
|
| this._heightInput = heightInput;
|
|
|