| 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();
|
| }
|
|
|