mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #1925 - Remove use of NS_SIDE_* macros.
This commit is contained in:
parent
e6e2796541
commit
ec7351a5d4
30 changed files with 322 additions and 328 deletions
|
|
@ -183,13 +183,13 @@ BoxObject::GetOffsetRect(nsIntRect& aRect)
|
|||
|
||||
// For the origin, add in the border for the frame
|
||||
const nsStyleBorder* border = frame->StyleBorder();
|
||||
origin.x += border->GetComputedBorderWidth(NS_SIDE_LEFT);
|
||||
origin.y += border->GetComputedBorderWidth(NS_SIDE_TOP);
|
||||
origin.x += border->GetComputedBorderWidth(eSideLeft);
|
||||
origin.y += border->GetComputedBorderWidth(eSideTop);
|
||||
|
||||
// And subtract out the border for the parent
|
||||
const nsStyleBorder* parentBorder = parent->StyleBorder();
|
||||
origin.x -= parentBorder->GetComputedBorderWidth(NS_SIDE_LEFT);
|
||||
origin.y -= parentBorder->GetComputedBorderWidth(NS_SIDE_TOP);
|
||||
origin.x -= parentBorder->GetComputedBorderWidth(eSideLeft);
|
||||
origin.y -= parentBorder->GetComputedBorderWidth(eSideTop);
|
||||
|
||||
aRect.x = nsPresContext::AppUnitsToIntCSSPixels(origin.x);
|
||||
aRect.y = nsPresContext::AppUnitsToIntCSSPixels(origin.y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue