Bug 823493 - References to IUI in CssHtmlTree.jsm. r=paul
authorMichael Ratcliffe <mratcliffe@mozilla.com>
Thu, 20 Dec 2012 16:49:20 +0000
changeset 125967 6ec2cc4a851d4bfecb0d06e79b93d08d4fe1e709
parent 125966 d4ed13122c42e0324fba3a911bcb3768cc3368cc
child 125968 37083101b97d26d5424a5bbf5b86232c3908b36e
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspaul
bugs823493
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 823493 - References to IUI in CssHtmlTree.jsm. r=paul
browser/devtools/styleinspector/CssHtmlTree.jsm
--- a/browser/devtools/styleinspector/CssHtmlTree.jsm
+++ b/browser/devtools/styleinspector/CssHtmlTree.jsm
@@ -1199,23 +1199,23 @@ SelectorView.prototype = {
       return this.text(aElement) + " \u2192 " + this.selectorInfo.value;
     }
   },
 
   text: function SelectorView_text(aElement) {
     let result = this.selectorInfo.selector.text;
     if (this.selectorInfo.elementStyle) {
       let source = this.selectorInfo.sourceElement;
-      let IUI = this.tree.styleInspector.IUI;
-      if (IUI && IUI.selection == source) {
+      let inspector = this.tree.styleInspector.inspector;
+
+      if (inspector.selection.node == source) {
         result = "this";
       } else {
         result = CssLogic.getShortName(source);
       }
-
       result += ".style";
     }
 
     return result;
   },
 
   maybeOpenStyleEditor: function(aEvent)
   {