mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-29 17:40:42 +00:00
bug 1725
This commit is contained in:
parent
c8993905bc
commit
252c4d8e70
@ -505,6 +505,19 @@ NS_METHOD nsTableRowGroupFrame::PullUpAllRowFrames(nsIPresContext& aPresContext)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void GetNextRowSibling(nsIFrame** aRowFrame)
|
||||
{
|
||||
nsresult rv = (*aRowFrame)->GetNextSibling(aRowFrame);
|
||||
while(*aRowFrame && (NS_SUCCEEDED(rv))) {
|
||||
const nsStyleDisplay *display;
|
||||
(*aRowFrame)->GetStyleData(eStyleStruct_Display, ((const nsStyleStruct *&)display));
|
||||
if (NS_STYLE_DISPLAY_TABLE_ROW == display->mDisplay) {
|
||||
return;
|
||||
}
|
||||
rv = (*aRowFrame)->GetNextSibling(aRowFrame);
|
||||
}
|
||||
}
|
||||
|
||||
/* CalculateRowHeights provides default heights for all rows in the rowgroup.
|
||||
* Actual row heights are ultimately determined by the table, when the table
|
||||
* height attribute is factored in.
|
||||
@ -671,7 +684,7 @@ void nsTableRowGroupFrame::CalculateRowHeights(nsIPresContext& aPresContext,
|
||||
i, rowFrameToBeResized, rowRect.y + delta, delta);
|
||||
}
|
||||
// Get the next row frame
|
||||
rowFrameToBeResized->GetNextSibling((nsIFrame**)&rowFrameToBeResized);
|
||||
GetNextRowSibling((nsIFrame**)&rowFrameToBeResized);
|
||||
}
|
||||
delete []excessForRow;
|
||||
}
|
||||
|
@ -505,6 +505,19 @@ NS_METHOD nsTableRowGroupFrame::PullUpAllRowFrames(nsIPresContext& aPresContext)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void GetNextRowSibling(nsIFrame** aRowFrame)
|
||||
{
|
||||
nsresult rv = (*aRowFrame)->GetNextSibling(aRowFrame);
|
||||
while(*aRowFrame && (NS_SUCCEEDED(rv))) {
|
||||
const nsStyleDisplay *display;
|
||||
(*aRowFrame)->GetStyleData(eStyleStruct_Display, ((const nsStyleStruct *&)display));
|
||||
if (NS_STYLE_DISPLAY_TABLE_ROW == display->mDisplay) {
|
||||
return;
|
||||
}
|
||||
rv = (*aRowFrame)->GetNextSibling(aRowFrame);
|
||||
}
|
||||
}
|
||||
|
||||
/* CalculateRowHeights provides default heights for all rows in the rowgroup.
|
||||
* Actual row heights are ultimately determined by the table, when the table
|
||||
* height attribute is factored in.
|
||||
@ -671,7 +684,7 @@ void nsTableRowGroupFrame::CalculateRowHeights(nsIPresContext& aPresContext,
|
||||
i, rowFrameToBeResized, rowRect.y + delta, delta);
|
||||
}
|
||||
// Get the next row frame
|
||||
rowFrameToBeResized->GetNextSibling((nsIFrame**)&rowFrameToBeResized);
|
||||
GetNextRowSibling((nsIFrame**)&rowFrameToBeResized);
|
||||
}
|
||||
delete []excessForRow;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user