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

Unified Diff: Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js

Issue 826713005: DevTools: Highlight changed scope variables as they change (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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: Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js
diff --git a/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js b/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js
index 0c9a41124100e4af1076981c007e6de7a3c60e82..0f3ee2c686d642f8e9cb2fd0350384ea16b96932 100644
--- a/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js
+++ b/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js
@@ -37,6 +37,11 @@ WebInspector.WatchExpressionsSidebarPane = function()
WebInspector.SidebarPane.call(this, WebInspector.UIString("Watch Expressions"));
this.section = new WebInspector.WatchExpressionsSection();
+ this.section.pane = this;
+
+ this._expandedExpressions = new Set();
+ this._expandedProperties = new Set();
+
this.bodyElement.appendChild(this.section.element);
var refreshButton = this.titleElement.createChild("button", "pane-title-button refresh");
@@ -211,6 +216,8 @@ WebInspector.WatchExpressionsSection.prototype = {
this.element.appendChild(this.emptyElement);
this.propertiesElement.remove();
this.propertiesTreeOutline.removeChildren();
+ this.pane._expandedExpressions.clear();
+ this.pane._expandedProperties.clear();
} else {
this.element.appendChild(this.propertiesElement);
this.emptyElement.remove();

Powered by Google App Engine
This is Rietveld 408576698