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

Unified Diff: Source/devtools/front_end/ui/SettingsUI.js

Issue 345723003: [DevTools] Separate text autosizing from device metrics override. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: compile fix Created 6 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
« no previous file with comments | « Source/devtools/front_end/sdk/OverridesSupport.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/SettingsUI.js
diff --git a/Source/devtools/front_end/ui/SettingsUI.js b/Source/devtools/front_end/ui/SettingsUI.js
index 5c5b3451acb1af1a78217d8bd771593ae07330d2..03f6748b46f0faf05bdbaba2e36ad1c93799ffec 100644
--- a/Source/devtools/front_end/ui/SettingsUI.js
+++ b/Source/devtools/front_end/ui/SettingsUI.js
@@ -118,7 +118,6 @@ WebInspector.SettingsUI.createSettingInputField = function(label, setting, numer
if (validatorCallback) {
errorMessageLabel = p.createChild("div");
errorMessageLabel.classList.add("field-error-message");
- validate();
}
function onInput()
@@ -167,6 +166,9 @@ WebInspector.SettingsUI.createSettingInputField = function(label, setting, numer
}
onSettingChange();
+ if (validatorCallback)
+ validate();
+
return p;
}
« no previous file with comments | « Source/devtools/front_end/sdk/OverridesSupport.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698