Commit 3d67891b authored by apavlov@chromium.org's avatar apavlov@chromium.org

DevTools: [SSP] Do not re-show color popover after going full-screen

R=eustas, lushnikov
BUG=404555

Review URL: https://codereview.chromium.org/486633002

git-svn-id: svn://svn.chromium.org/blink/trunk@180456 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 819a05d3
......@@ -365,6 +365,7 @@ WebInspector.SpectrumPopupHelper.prototype = {
this.hide(true);
}
delete this._isHidden;
this._anchorElement = element;
this._spectrum.setColor(color);
......@@ -372,6 +373,7 @@ WebInspector.SpectrumPopupHelper.prototype = {
this.reposition(element);
document.addEventListener("mousedown", this._hideProxy, false);
window.addEventListener("resize", this._hideProxy, false);
if (WebInspector.experimentsSettings.colorPicker.isEnabled()) {
WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel, WebInspector.ResourceTreeModel.EventTypes.ColorPicked, this._colorPicked, this);
PageAgent.setColorPickerEnabled(true);
......@@ -392,11 +394,13 @@ WebInspector.SpectrumPopupHelper.prototype = {
*/
hide: function(commitEdit)
{
if (!this._popover.isShowing())
if (this._isHidden)
return;
this._isHidden = true;
this._popover.hide();
document.removeEventListener("mousedown", this._hideProxy, false);
window.removeEventListener("resize", this._hideProxy, false);
if (WebInspector.experimentsSettings.colorPicker.isEnabled()) {
PageAgent.setColorPickerEnabled(false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment