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

Unified Diff: Source/devtools/front_end/elements/StylesSidebarPane.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: Address offline comments Created 5 years, 7 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/StylesSidebarPane.js
diff --git a/Source/devtools/front_end/elements/StylesSidebarPane.js b/Source/devtools/front_end/elements/StylesSidebarPane.js
index 62b389cfa6d8e24c75330de624b5ad1f1597cee3..a44ac8d4389206f01abd8530919c67b01df3e1d0 100644
--- a/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -520,18 +520,14 @@ WebInspector.StylesSidebarPane.prototype = {
/**
* @override
- * @param {!WebInspector.DOMNode} changedNode
*/
- onDOMNodeChanged: function(changedNode)
+ onDOMModelChanged: function()
{
// Any attribute removal or modification can affect the styles of "related" nodes.
// Do not touch the styles if they are being edited.
if (this._isEditingStyle || this._userOperation)
return;
- if (!this._canAffectCurrentStyles(changedNode))
- return;
-
this._resetCache();
this.update();
},

Powered by Google App Engine
This is Rietveld 408576698