Bug 1423541: Use BaseRect access methods instead of member variables in accessible/ r=surkov

MozReview-Commit-ID: KRfgYEW7aWY
This commit is contained in:
Milan Sreckovic
2018-01-12 12:07:29 -05:00
parent 238bf44274
commit b4ba4675f7
21 changed files with 76 additions and 88 deletions

View File

@@ -222,7 +222,6 @@ HTMLAreaAccessible::RelativeBounds(nsIFrame** aBoundingFrame) const
// XXX Areas are screwy; they return their rects as a pair of points, one pair
// stored into the width and height.
*aBoundingFrame = frame;
bounds.width -= bounds.x;
bounds.height -= bounds.y;
bounds.SizeTo(bounds.Width() - bounds.X(), bounds.Height() - bounds.Y());
return bounds;
}