Title: [160142] trunk/Source/WebInspectorUI
- Revision
- 160142
- Author
- grao...@apple.com
- Date
- 2013-12-04 16:17:21 -0800 (Wed, 04 Dec 2013)
Log Message
Web Inspector: use only two decimals for opacity in rgba/hsla colors
https://bugs.webkit.org/show_bug.cgi?id=125261
Reviewed by Joseph Pecoraro.
* UserInterface/ColorPicker.js:
(WebInspector.ColorPicker.prototype._updateColor):
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (160141 => 160142)
--- trunk/Source/WebInspectorUI/ChangeLog 2013-12-05 00:13:48 UTC (rev 160141)
+++ trunk/Source/WebInspectorUI/ChangeLog 2013-12-05 00:17:21 UTC (rev 160142)
@@ -1,5 +1,15 @@
2013-12-04 Antoine Quint <grao...@apple.com>
+ Web Inspector: use only two decimals for opacity in rgba/hsla colors
+ https://bugs.webkit.org/show_bug.cgi?id=125261
+
+ Reviewed by Joseph Pecoraro.
+
+ * UserInterface/ColorPicker.js:
+ (WebInspector.ColorPicker.prototype._updateColor):
+
+2013-12-04 Antoine Quint <grao...@apple.com>
+
Web Inspector: "data detectors" menu on hover for actionable tokens
https://bugs.webkit.org/show_bug.cgi?id=124363
Modified: trunk/Source/WebInspectorUI/UserInterface/ColorPicker.js (160141 => 160142)
--- trunk/Source/WebInspectorUI/UserInterface/ColorPicker.js 2013-12-05 00:13:48 UTC (rev 160141)
+++ trunk/Source/WebInspectorUI/UserInterface/ColorPicker.js 2013-12-05 00:17:21 UTC (rev 160142)
@@ -127,7 +127,8 @@
if (this._dontUpdateColor)
return;
- var rgba = this._colorWheel.tintedColor.rgb.concat(this._opacity);
+ var opacity = Math.round(this._opacity * 100) / 100;
+ var rgba = this._colorWheel.tintedColor.rgb.concat(opacity);
this._color = new WebInspector.Color(WebInspector.Color.Format.RGBA, rgba).toString(this._colorFormat);
this.dispatchEventToListeners(WebInspector.ColorPicker.Event.ColorChanged, {color: this._color});
},
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes