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 801163 5b9e4b3adc7d407c6db78bae85e5f42a15681b33
parent 801162 ec53ec1bbd6bdc6fd434be9791a6f118403c6234
child 801164 01157e7f5fa6d6fd8a96e1611d2794f2ada17cb3
push id111602
push userbmo:dburns@mozilla.com
push dateTue, 29 May 2018 22:11:56 +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) {