mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 15:51:37 +00:00
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:
parent
3db2b5ee67
commit
0aee939183
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user