mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 04:03:47 +00:00
fixed a memory leak on a style context
This commit is contained in:
parent
d16438323f
commit
705f18b571
@ -540,8 +540,9 @@ nsTableRowFrame::InitialReflow(nsIPresContext& aPresContext,
|
||||
{
|
||||
kidAvailSize.width = cellPosition->mWidth.GetCoordValue();
|
||||
}
|
||||
NS_RELEASE(kidSC);
|
||||
*/
|
||||
NS_IF_RELEASE(kidSC);
|
||||
|
||||
// Get the child's margins
|
||||
nsMargin margin;
|
||||
nscoord topMargin = 0;
|
||||
@ -575,7 +576,7 @@ nsTableRowFrame::InitialReflow(nsIPresContext& aPresContext,
|
||||
if (gsDebug1) printf ("%p InitR: avail=%d\n", this, kidAvailSize.width);
|
||||
status = ReflowChild(kidFrame, &aPresContext, kidSize, kidReflowState);
|
||||
if (gsDebug1)
|
||||
printf ("%p InitR: desired=%d, MES=%d\n",
|
||||
printf ("%p Initial Reflow: desired=%d, MES=%d\n",
|
||||
this, kidSize.width, kidMaxElementSize.width);
|
||||
((nsTableCellFrame *)kidFrame)->SetPass1DesiredSize(kidSize);
|
||||
((nsTableCellFrame *)kidFrame)->SetPass1MaxElementSize(kidMaxElementSize);
|
||||
|
@ -540,8 +540,9 @@ nsTableRowFrame::InitialReflow(nsIPresContext& aPresContext,
|
||||
{
|
||||
kidAvailSize.width = cellPosition->mWidth.GetCoordValue();
|
||||
}
|
||||
NS_RELEASE(kidSC);
|
||||
*/
|
||||
NS_IF_RELEASE(kidSC);
|
||||
|
||||
// Get the child's margins
|
||||
nsMargin margin;
|
||||
nscoord topMargin = 0;
|
||||
@ -575,7 +576,7 @@ nsTableRowFrame::InitialReflow(nsIPresContext& aPresContext,
|
||||
if (gsDebug1) printf ("%p InitR: avail=%d\n", this, kidAvailSize.width);
|
||||
status = ReflowChild(kidFrame, &aPresContext, kidSize, kidReflowState);
|
||||
if (gsDebug1)
|
||||
printf ("%p InitR: desired=%d, MES=%d\n",
|
||||
printf ("%p Initial Reflow: desired=%d, MES=%d\n",
|
||||
this, kidSize.width, kidMaxElementSize.width);
|
||||
((nsTableCellFrame *)kidFrame)->SetPass1DesiredSize(kidSize);
|
||||
((nsTableCellFrame *)kidFrame)->SetPass1MaxElementSize(kidMaxElementSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user