mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 04:58:00 +00:00
Bug 352043 deadcode in nsBoxObject::GetOffsetRect
r=bz sr=neil
This commit is contained in:
parent
7e9a4d2ccc
commit
cc9897a848
@ -201,11 +201,9 @@ nsBoxObject::GetOffsetRect(nsRect& aRect)
|
||||
origin.y += border->GetBorderWidth(NS_SIDE_TOP);
|
||||
|
||||
// And subtract out the border for the parent
|
||||
if (parent) {
|
||||
const nsStyleBorder* parentBorder = parent->GetStyleBorder();
|
||||
origin.x -= parentBorder->GetBorderWidth(NS_SIDE_LEFT);
|
||||
origin.y -= parentBorder->GetBorderWidth(NS_SIDE_TOP);
|
||||
}
|
||||
const nsStyleBorder* parentBorder = parent->GetStyleBorder();
|
||||
origin.x -= parentBorder->GetBorderWidth(NS_SIDE_LEFT);
|
||||
origin.y -= parentBorder->GetBorderWidth(NS_SIDE_TOP);
|
||||
|
||||
// Get the Presentation Context from the Shell
|
||||
nsIPresShell* shell = GetPresShell(PR_FALSE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user