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

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 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..ab0bf434ef9369c1acc6e648864ee681dee51bdf 100644
--- a/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -520,32 +520,19 @@ 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();
},
/**
- * @param {?WebInspector.DOMNode} node
- */
- _canAffectCurrentStyles: function(node)
- {
- var currentNode = this.node();
- return currentNode && (currentNode === node || node.parentNode === currentNode.parentNode || node.isAncestor(currentNode));
- },
-
- /**
* @param {?{matched: !WebInspector.SectionCascade, pseudo: !Map.<number, !WebInspector.SectionCascade>}} cascades
*/
_innerRebuildUpdate: function(cascades)
« no previous file with comments | « Source/devtools/front_end/elements/PlatformFontsSidebarPane.js ('k') | Source/devtools/front_end/sdk/DOMModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698