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

@@ -213,8 +213,8 @@ HTMLSelectOptionAccessible::NativeState()
if (listAcc) {
nsIntRect optionRect = Bounds();
nsIntRect listRect = listAcc->Bounds();
if (optionRect.y < listRect.y ||
optionRect.y + optionRect.height > listRect.y + listRect.height) {
if (optionRect.Y() < listRect.Y() ||
optionRect.YMost() > listRect.YMost()) {
state |= states::OFFSCREEN;
}
}