Bug 1387461 - Add note to remove element.isVisible. r?automatedtester draft
authorAndreas Tolfsen <ato@sny.no>
Fri, 04 Aug 2017 15:51:19 +0100
changeset 621243 ed70fa0ddb8840197bb69cfe4ea4d0bed4d7cb46
parent 620862 32083f24a1bb2c33050b4c972783f066432194eb
child 640949 13065fe84c3762b46259a7fc517d3ad55420c318
push id72310
push userbmo:ato@sny.no
push dateFri, 04 Aug 2017 14:51:47 +0000
reviewersautomatedtester
bugs1387461
milestone57.0a1
Bug 1387461 - Add note to remove element.isVisible. r?automatedtester DONTBUILD MozReview-Commit-ID: AO8ikaX6RHB
testing/marionette/element.js
--- a/testing/marionette/element.js
+++ b/testing/marionette/element.js
@@ -868,16 +868,18 @@ element.isVisible = function(el, x = und
  * @return {boolean}
  *     True if element is obscured, false otherwise.
  */
 element.isObscured = function(el) {
   let tree = element.getPointerInteractablePaintTree(el);
   return !el.contains(tree[0]);
 };
 
+// TODO(ato): Only used by deprecated action API
+// https://bugzil.la/1354578
 /**
  * Calculate the in-view centre point of the area of the given DOM client
  * rectangle that is inside the viewport.
  *
  * @param {DOMRect} rect
  *     Element off a DOMRect sequence produced by calling |getClientRects|
  *     on a |DOMElement|.
  * @param {nsIDOMWindow} win