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

Unified Diff: Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 571653002: DevTools: [SSP] consume event if it inserts a new property (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: keeping it on the safe side Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/elements/StylesSidebarPane.js
diff --git a/Source/devtools/front_end/elements/StylesSidebarPane.js b/Source/devtools/front_end/elements/StylesSidebarPane.js
index c859f563eab841350621302908d0932ab2a20ac1..05a034b0a2a41dc064d46956a285779a25031a0f 100644
--- a/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -1599,8 +1599,10 @@ WebInspector.StylePropertiesSection.prototype = {
{
if (this._checkWillCancelEditing() || !this.editable)
return;
- if (event.target === this._selectorContainer)
+ if (event.target === this._selectorContainer) {
this.addNewBlankProperty(0).startEditing();
+ event.consume(true);
+ }
},
/**
@@ -1697,6 +1699,7 @@ WebInspector.StylePropertiesSection.prototype = {
}
this.expand();
this.addNewBlankProperty().startEditing();
+ event.consume(true)
},
_handleSelectorClick: function(event)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698