Bug 542361 - Fix and remove the GetUsedX assertions. r=roc,dbaron

This commit is contained in:
Michael Ventnor
2010-02-04 14:58:02 +01:00
parent 798a5f465b
commit 1a73409a07
10 changed files with 100 additions and 88 deletions

View File

@@ -1658,6 +1658,11 @@ nsHTMLReflowState::InitConstraints(nsPresContext* aPresContext,
const nsMargin* aBorder,
const nsMargin* aPadding)
{
// Since we are in reflow, we don't need to store these properties anymore
frame->DeleteProperty(nsGkAtoms::usedBorderProperty);
frame->DeleteProperty(nsGkAtoms::usedPaddingProperty);
frame->DeleteProperty(nsGkAtoms::usedMarginProperty);
// If this is the root frame, then set the computed width and
// height equal to the available space
if (nsnull == parentReflowState) {