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

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

Issue 2421983002: [DevTools] Remove layout editor experiment. (Closed)
Patch Set: rebased Created 4 years 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 59fbbc2f9a91c7eaa3ad4351d26ec29f2e2ce04c..65cac72ea3dfd9ba4d7d6e23ec7f97091062dfc3 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -47,9 +47,6 @@ Elements.StylesSidebarPane = class extends Elements.ElementsSidebarPane {
/** @type {!Array<!Elements.SectionBlock>} */
this._sectionBlocks = [];
Elements.StylesSidebarPane._instance = this;
-
- SDK.targetManager.addModelListener(
- SDK.CSSModel, SDK.CSSModel.Events.LayoutEditorChange, this._onLayoutEditorChange, this);
UI.context.addFlavorChangeListener(SDK.DOMNode, this.forceUpdate, this);
}
@@ -151,22 +148,10 @@ Elements.StylesSidebarPane = class extends Elements.ElementsSidebarPane {
}
/**
- * @param {!Common.Event} event
- */
- _onLayoutEditorChange(event) {
- var cssModel = /** @type {!SDK.CSSModel} */ (event.target);
- var styleSheetId = event.data['id'];
- var sourceRange = /** @type {!Protocol.CSS.SourceRange} */ (event.data['range']);
- var range = Common.TextRange.fromObject(sourceRange);
- this._decorator = new Elements.PropertyChangeHighlighter(this, cssModel, styleSheetId, range);
- this.update();
- }
-
- /**
* @param {!SDK.CSSProperty} cssProperty
*/
revealProperty(cssProperty) {
- this._decorator = new Elements.PropertyRevealHighlighter(this, cssProperty);
+ this._decorator = new Elements.StylePropertyHighlighter(this, cssProperty);
this._decorator.perform();
this.update();
}

Powered by Google App Engine
This is Rietveld 408576698