Bug 352043 deadcode in nsBoxObject::GetOffsetRect

r=bz sr=neil
This commit is contained in:
timeless%mozdev.org 2006-09-22 07:27:49 +00:00
parent 7e9a4d2ccc
commit cc9897a848

View File

@ -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);
}
// Get the Presentation Context from the Shell
nsIPresShell* shell = GetPresShell(PR_FALSE);