Backed out changeset 9c1ee3920ea3 (bug 1345119)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Thu, 23 Mar 2017 22:00:26 +0100
changeset 349193 160438b0f0f8
parent 349192 0cb92f5cc3bc
child 349194 c8379919d781
push id88393
push userarchaeopteryx@coole-files.de
push dateThu, 23 Mar 2017 21:01:27 +0000
treeherdermozilla-inbound@c8379919d781 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1345119
milestone55.0a1
backs out9c1ee3920ea3
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
Backed out changeset 9c1ee3920ea3 (bug 1345119)
devtools/server/actors/inspector.js
devtools/shared/specs/inspector.js
--- a/devtools/server/actors/inspector.js
+++ b/devtools/server/actors/inspector.js
@@ -2642,32 +2642,16 @@ var WalkerActor = protocol.ActorClassWit
    */
   getLayoutInspector: function () {
     if (!this.layoutActor) {
       this.layoutActor = new LayoutActor(this.conn, this.tabActor, this);
     }
 
     return this.layoutActor;
   },
-
-  /**
-   * Get the offset parent of the node
-   * If the offset parent is statically positioned, there is no offset parent
-   * and null is returned.
-   * Returns the DOMNode for the offset parent if it exists
-   */
-  getOffsetParent: function (domnode) {
-    let offsetParent = domnode.rawNode.offsetParent;
-
-    if (!offsetParent || CssLogic.getComputedStyle(offsetParent).position === "static") {
-      return null;
-    }
-
-    return this._ref(offsetParent);
-  },
 });
 
 /**
  * Server side of the inspector actor, which is used to create
  * inspector-related actors, including the walker.
  */
 exports.InspectorActor = protocol.ActorClassWithSpec(inspectorSpec, {
   initialize: function (conn, tabActor) {
--- a/devtools/shared/specs/inspector.js
+++ b/devtools/shared/specs/inspector.js
@@ -369,25 +369,17 @@ const walkerSpec = generateActorSpec({
         node: RetVal("nullable:disconnectedNode")
       }
     },
     getLayoutInspector: {
       request: {},
       response: {
         actor: RetVal("layout")
       }
-    },
-    getOffsetParent: {
-      request: {
-        node: Arg(0, "domnode")
-      },
-      response: {
-        node: RetVal("nullable:domnode")
-      }
-    },
+    }
   }
 });
 
 exports.walkerSpec = walkerSpec;
 
 const inspectorSpec = generateActorSpec({
   typeName: "inspector",