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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/Spectrum.js

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens 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
Index: third_party/WebKit/Source/devtools/front_end/elements/Spectrum.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/Spectrum.js b/third_party/WebKit/Source/devtools/front_end/elements/Spectrum.js
index b179e4f15efdbfb808ffcca0174a0a61deccb5f8..677bc7777dce67e7c229276b72e9314fa9c952ca 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/Spectrum.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/Spectrum.js
@@ -688,7 +688,7 @@ WebInspector.Spectrum.prototype = {
if (!isRgb && (i === 1 || i === 2))
this._textValues[i].value += "%";
}
- this._textValues[3].value= Math.round(colorValues[3] * 100) / 100;
+ this._textValues[3].value = Math.round(colorValues[3] * 100) / 100;
}
},
@@ -949,7 +949,7 @@ WebInspector.Spectrum.PaletteGenerator.prototype = {
// First trim the shades of gray
if (hsvb[1] < 0.12 && hsva[1] < 0.12)
- return hsvb[2]*hsvb[3] - hsva[2]*hsva[3];
+ return hsvb[2] * hsvb[3] - hsva[2] * hsva[3];
if (hsvb[1] < 0.12)
return -1;
if (hsva[1] < 0.12)
@@ -957,7 +957,7 @@ WebInspector.Spectrum.PaletteGenerator.prototype = {
// Equal hue -> sort by sat
if (hsvb[0] === hsva[0])
- return hsvb[1]*hsvb[3] - hsva[1]*hsva[3];
+ return hsvb[1] * hsvb[3] - hsva[1] * hsva[3];
return (hsvb[0] + 0.94) % 1 - (hsva[0] + 0.94) % 1;
}

Powered by Google App Engine
This is Rietveld 408576698