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

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

Issue 172593003: DevTools: [CSS] Add CSS.editRangeInStyleSheetText() to the protocol (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address @apavlov & @pfeldman comments Created 6 years, 10 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/StylesSidebarPane.js
diff --git a/Source/devtools/front_end/StylesSidebarPane.js b/Source/devtools/front_end/StylesSidebarPane.js
index 33b9add8d092d2d3782e46ea324d56a7242aef48..36ead3a4869e2e6c656ee3fbb58f0adaeb20c6b4 100644
--- a/Source/devtools/front_end/StylesSidebarPane.js
+++ b/Source/devtools/front_end/StylesSidebarPane.js
@@ -180,7 +180,7 @@ WebInspector.StylesSidebarPane.prototype = {
contextMenu.show();
},
- get _forcedPseudoClasses()
+ _forcedPseudoClasses: function()
{
return this.node ? (this.node.getUserProperty("pseudoState") || undefined) : undefined;
},
@@ -194,7 +194,7 @@ WebInspector.StylesSidebarPane.prototype = {
this._elementStateButton.enableStyleClass("hidden", hasPseudoType);
this._elementStatePane.enableStyleClass("expanded", !hasPseudoType && this._elementStateButton.classList.contains("toggled"));
- var nodePseudoState = this._forcedPseudoClasses;
+ var nodePseudoState = this._forcedPseudoClasses();
if (!nodePseudoState)
nodePseudoState = [];

Powered by Google App Engine
This is Rietveld 408576698