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

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

Issue 1343293005: Devtools: Fix frontend part of LayoutEditor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reupload after merge Created 5 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
Index: third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
index 172ed0b65f560883d8bafd9f772635f4f33b97cd..6b83607e156f41d24073a83b5bb3197ecc8eafcf 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -45,12 +45,6 @@ WebInspector.StylesSidebarPane = function()
filterContainerElement.appendChild(this._filterInput);
var toolbar = new WebInspector.ExtensibleToolbar("styles-sidebarpane-toolbar", hbox);
- if (Runtime.experiments.isEnabled("layoutEditor") && !Runtime.queryParam("remoteFrontend")) {
- this._layoutEditorButton = new WebInspector.ToolbarButton(WebInspector.UIString("Toggle Layout Editor"), "layout-editor-toolbar-item");
- toolbar.appendToolbarItem(this._layoutEditorButton);
- this._layoutEditorButton.addEventListener("click", this._toggleLayoutEditor, this);
- toolbar.appendSeparator();
- }
toolbar.element.classList.add("styles-pane-toolbar", "toolbar-gray-toggled");
this._currentToolbarPane = null;
@@ -143,21 +137,6 @@ WebInspector.StylesSidebarPane.ignoreErrorsForProperty = function(property) {
}
WebInspector.StylesSidebarPane.prototype = {
- _toggleLayoutEditor: function()
- {
- this._showLayoutEditor = !this._showLayoutEditor;
- this._layoutEditorButton.setToggled(this._showLayoutEditor);
- var targets = WebInspector.targetManager.targets();
-
- if (this._showLayoutEditor)
- WebInspector.inspectElementModeController.disable();
- else
- WebInspector.inspectElementModeController.enable();
-
- var mode = this._showLayoutEditor ? DOMAgent.InspectMode.ShowLayoutEditor : DOMAgent.InspectMode.None;
- for (var domModel of WebInspector.DOMModel.instances())
- domModel.setInspectMode(mode);
- },
onUndoOrRedoHappened: function()
{

Powered by Google App Engine
This is Rietveld 408576698