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

Unified Diff: Source/devtools/front_end/StylesSidebarPane.js

Issue 218703002: DevTools: [wip] move Elements panel off WebInspector.domModel and single tree outline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comment addressed (and much more) Created 6 years, 9 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
« no previous file with comments | « Source/devtools/front_end/RemoteObject.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/StylesSidebarPane.js
diff --git a/Source/devtools/front_end/StylesSidebarPane.js b/Source/devtools/front_end/StylesSidebarPane.js
index d98c1cf65e2968ccdd61a9b8ed9023d940255fc4..087515c1c2f31e9621194cf1bb7bb754f59e562d 100644
--- a/Source/devtools/front_end/StylesSidebarPane.js
+++ b/Source/devtools/front_end/StylesSidebarPane.js
@@ -31,7 +31,7 @@
* @constructor
* @extends {WebInspector.SidebarPane}
* @param {!WebInspector.ComputedStyleSidebarPane} computedStylePane
- * @param {function(!DOMAgent.NodeId, string, boolean)} setPseudoClassCallback
+ * @param {function(!WebInspector.DOMNode, string, boolean)=} setPseudoClassCallback
*/
WebInspector.StylesSidebarPane = function(computedStylePane, setPseudoClassCallback)
{
@@ -211,7 +211,7 @@ WebInspector.StylesSidebarPane.prototype = {
get _forcedPseudoClasses()
{
- return this.node ? (this.node.getUserProperty("pseudoState") || undefined) : undefined;
+ return this.node ? (this.node.getUserProperty(WebInspector.CSSStyleModel.PseudoStatePropertyName) || undefined) : undefined;
},
_updateForcedPseudoStateInputs: function()
@@ -820,7 +820,7 @@ WebInspector.StylesSidebarPane.prototype = {
var node = this._validateNode();
if (!node)
return;
- this._setPseudoClassCallback(node.id, event.target.state, event.target.checked);
+ this._setPseudoClassCallback(node, event.target.state, event.target.checked);
}
/**
« no previous file with comments | « Source/devtools/front_end/RemoteObject.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698