Index: third_party/WebKit/Source/devtools/front_end/components/Spectrum.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js b/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js |
index a0bf2cd4510107cb52ba75340a0c8c486fa3b58c..06de0fc6ec23b039094d377c4de0cb5c0a3ae5a7 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js |
+++ b/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js |
@@ -851,6 +851,9 @@ WebInspector.Spectrum.prototype = { |
this._innerSetColor(hsv, colorString, undefined, WebInspector.Spectrum._ChangeSource.Input); |
}, |
+ /** |
+ * @override |
+ */ |
wasShown: function() |
{ |
this._hueAlphaWidth = this._hueElement.offsetWidth; |
@@ -863,6 +866,9 @@ WebInspector.Spectrum.prototype = { |
WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.Events.ColorPicked, this._colorPicked, this); |
}, |
+ /** |
+ * @override |
+ */ |
willHide: function() |
{ |
this._toggleColorPicker(false); |