Bug 1387678 - Remove unused reference to container variable; r?ato draft
authorDavid Burns <dburns@mozilla.com>
Sat, 28 Apr 2018 00:18:53 +0100
changeset 798693 baf4193a3ca3ca665cd69d2e08cb4aab71f3881e
parent 798692 33395ec41581f53d35ddbde10a4d106bc337b4bd
child 798694 ef92dccfe49c3bf5af01fc4d441b879f6dbc828b
push id110828
push userbmo:dburns@mozilla.com
push dateWed, 23 May 2018 10:39:43 +0000
reviewersato
bugs1387678
milestone62.0a1
Bug 1387678 - Remove unused reference to container variable; r?ato MozReview-Commit-ID: IVWtmbSuXiw
testing/marionette/element.js
--- a/testing/marionette/element.js
+++ b/testing/marionette/element.js
@@ -1184,25 +1184,18 @@ element.getInViewCentrePoint = function(
  *     Element to determine if is pointer-interactable.
  *
  * @return {Array.<DOMElement>}
  *     Sequence of elements in paint order.
  */
 element.getPointerInteractablePaintTree = function(el) {
   const doc = el.ownerDocument;
   const win = doc.defaultView;
-  const container = {frame: win};
   const rootNode = el.getRootNode();
 
-  // Include shadow DOM host only if the element's root node is not the
-  // owner document.
-  if (rootNode !== doc) {
-    container.shadowRoot = rootNode;
-  }
-
   // pointer-interactable elements tree, step 1
   if (!el.isConnected) {
     return [];
   }
 
   // steps 2-3
   let rects = el.getClientRects();
   if (rects.length == 0) {