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

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

Issue 1104163003: Devtools: [ElementsPanel] Add dom listeners in sidebars (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@move-force-state
Patch Set: MutationObserver via promises Created 5 years, 8 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: Source/devtools/front_end/elements/PlatformFontsSidebarPane.js
diff --git a/Source/devtools/front_end/elements/PlatformFontsSidebarPane.js b/Source/devtools/front_end/elements/PlatformFontsSidebarPane.js
index faa8e1e10d3699745752a0701d69d5d9e4d36b0f..5b12f176425399fcfb851b17e69954e8b3ffdda6 100644
--- a/Source/devtools/front_end/elements/PlatformFontsSidebarPane.js
+++ b/Source/devtools/front_end/elements/PlatformFontsSidebarPane.js
@@ -68,6 +68,7 @@ WebInspector.PlatformFontsSidebarPane.prototype = {
this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.StyleSheetChanged, this.update, this);
this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.MediaQueryResultChanged, this.update, this);
this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.PseudoStateForced, this.update, this);
+ this._domModel.removeDOMMutationsObserver(this.update, this);
this._domModel.removeEventListener(WebInspector.DOMModel.Events.AttrModified, this.update, this);
this._domModel.removeEventListener(WebInspector.DOMModel.Events.AttrRemoved, this.update, this);
this._domModel.removeEventListener(WebInspector.DOMModel.Events.CharacterDataModified, this.update, this);
@@ -81,6 +82,7 @@ WebInspector.PlatformFontsSidebarPane.prototype = {
this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetChanged, this.update, this);
this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.MediaQueryResultChanged, this.update, this);
this._cssModel.addEventListener(WebInspector.CSSStyleModel.Events.PseudoStateForced, this.update, this);
+ this._domModel.addDOMMutationsObserver(this.update, this);
this._domModel.addEventListener(WebInspector.DOMModel.Events.AttrModified, this.update, this);
this._domModel.addEventListener(WebInspector.DOMModel.Events.AttrRemoved, this.update, this);
this._domModel.addEventListener(WebInspector.DOMModel.Events.CharacterDataModified, this.update, this);

Powered by Google App Engine
This is Rietveld 408576698