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

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

Issue 1301743002: Devtools UI: Fix edit as html shortcut regression (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/ElementsPanel.js
diff --git a/Source/devtools/front_end/elements/ElementsPanel.js b/Source/devtools/front_end/elements/ElementsPanel.js
index 112fd5f91c1f00f7164ef58ca3c94c4371c9b3cc..7c8c53babadaa7cb072fff6ec2a94b11c6dcbf84 100644
--- a/Source/devtools/front_end/elements/ElementsPanel.js
+++ b/Source/devtools/front_end/elements/ElementsPanel.js
@@ -170,9 +170,13 @@ WebInspector.ElementsPanel.prototype = {
var treeOutline = this._treeOutlineForNode(node);
if (!node || !treeOutline)
return;
- var startEditing = !this._editAsHTMLButton.toggled();
+
+ var startEditing = true;
+ if (Runtime.experiments.isEnabled("materialDesign")) {
+ startEditing = !this._editAsHTMLButton.toggled();
+ this._editAsHTMLButton.setToggled(startEditing);
+ }
treeOutline.toggleEditAsHTML(node, startEditing, this._updateToolbarButtons.bind(this));
- this._editAsHTMLButton.setToggled(startEditing);
},
/**
« 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