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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/MetricsSidebarPane.js

Issue 2697603006: DevTools: Fix an exception on adding watch expression. (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/devtools/front_end/elements/MetricsSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/MetricsSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/elements/MetricsSidebarPane.js
index 0197c0e1f53269cae12c4632251237f0333b54fe..d9cba7026ce0076d0c8119ac73fb77b75aabd519 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/MetricsSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/MetricsSidebarPane.js
@@ -319,7 +319,7 @@ Elements.MetricsSidebarPane = class extends Elements.ElementsSidebarPane {
new UI.InplaceEditor.Config(this._editingCommitted.bind(this), this.editingCancelled.bind(this), context);
UI.InplaceEditor.startEditing(targetElement, config);
- targetElement.getComponentSelection().setBaseAndExtent(targetElement, 0, targetElement, 1);
+ targetElement.getComponentSelection().selectAllChildren(targetElement);
}
_handleKeyDown(context, styleProperty, event) {

Powered by Google App Engine
This is Rietveld 408576698