Bug 920495 - In the inspector, when a node is highlighted, we should scroll to show the node. r=mratcliffe
authorPaul Rouget <paul@mozilla.com>
Thu, 26 Sep 2013 09:53:22 -0400
changeset 148793 8a975713796d82c3aa754786f5064f9578a281d2
parent 148792 7fc34f3b378069aa88a1c90fa9a8622aca532b2c
child 148794 1292ead729c9a5577eb78a2b4d00d50069398915
push id2842
push userryanvm@gmail.com
push dateThu, 26 Sep 2013 14:00:48 +0000
treeherderfx-team@8a975713796d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmratcliffe
bugs920495
milestone27.0a1
Bug 920495 - In the inspector, when a node is highlighted, we should scroll to show the node. r=mratcliffe
toolkit/devtools/server/actors/inspector.js
--- a/toolkit/devtools/server/actors/inspector.js
+++ b/toolkit/devtools/server/actors/inspector.js
@@ -929,17 +929,16 @@ var WalkerActor = protocol.ActorClass({
 
     if (!node ||
         !node.rawNode ||
          node.rawNode.nodeType !== Ci.nsIDOMNode.ELEMENT_NODE) {
       return;
     }
 
     this._installHelperSheet(node);
-    this.layoutHelpers.scrollIntoViewIfNeeded(node.rawNode);
     DOMUtils.addPseudoClassLock(node.rawNode, HIGHLIGHTED_PSEUDO_CLASS);
     this._highlightTimeout = setTimeout(this._unhighlight.bind(this), HIGHLIGHTED_TIMEOUT);
 
   }, { request: { node: Arg(0, "nullable:domnode") }}),
 
   /**
    * Watch the given document node for mutations using the DOM observer
    * API.