Bug 1423548: Use BaseRect access methods instead of member variables in toolkit/ r=jaws

MozReview-Commit-ID: ASnjeke9S4D

--HG--
extra : rebase_source : 9dba68ab37401f7e616bce831dc4072bd241082f
This commit is contained in:
Milan Sreckovic 2018-01-10 11:18:49 -05:00
parent 3db2b5ee67
commit 0aee939183

View File

@ -1428,16 +1428,16 @@ nsWebBrowser::GetPositionAndSize(int32_t* aX, int32_t* aY,
LayoutDeviceIntRect bounds = mInternalWidget->GetBounds();
if (aX) {
*aX = bounds.x;
*aX = bounds.X();
}
if (aY) {
*aY = bounds.y;
*aY = bounds.Y();
}
if (aCX) {
*aCX = bounds.width;
*aCX = bounds.Width();
}
if (aCY) {
*aCY = bounds.height;
*aCY = bounds.Height();
}
return NS_OK;
} else {
@ -1750,8 +1750,8 @@ DrawPaintedLayer(PaintedLayer* aLayer,
ColorPattern color(ToDeviceColor(*static_cast<nscolor*>(aCallbackData)));
nsIntRect dirtyRect = aRegionToDraw.GetBounds();
aDrawTarget.FillRect(
Rect(dirtyRect.x, dirtyRect.y, dirtyRect.width, dirtyRect.height), color);
aDrawTarget.FillRect( Rect(dirtyRect.X(), dirtyRect.Y(),
dirtyRect.Width(), dirtyRect.Height()), color);
}
void