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

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

Issue 1917543002: DevTools: Update styles for sensors drawer panel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor updates Created 4 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 | « third_party/WebKit/Source/devtools/front_end/emulation/sensors.css ('k') | 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/UIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
index a98a6bdbeb2108c8a2e6c1ba092564b68c7ba93d..fd669944760b2855fa2fba1fd1c029b203fcfe0e 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
@@ -1524,7 +1524,11 @@ WebInspector.bindInput = function(input, apply, validate, numeric)
var valid = validate(value);
input.classList.toggle("error-input", !valid);
input.value = value;
- input.setSelectionRange(value.length, value.length);
+
+ // Selection range operations are not supported by type "number" inputs. This browser
+ // behavior is detailed by the WHATWG forms spec.
+ if (input.type !== "number")
+ input.setSelectionRange(value.length, value.length);
}
return setValue;
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/emulation/sensors.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698