зеркало из https://github.com/mozilla/pjs.git
bug 126742 - correct typo, setting the correct offset. sr=attinasi, r=alexsavulov, a=shaver
This commit is contained in:
Родитель
cf8642b915
Коммит
38f124cff8
|
@ -3531,8 +3531,7 @@ nsTableFrame::DistributeHeightToRows(nsIPresContext* aPresContext,
|
|||
nscoord cellSpacingY = GetCellSpacingY();
|
||||
|
||||
nscoord sumOfRowHeights = 0;
|
||||
nsMargin borderPadding;
|
||||
GetChildAreaOffset(*aPresContext, &aReflowState);
|
||||
nsMargin borderPadding = GetChildAreaOffset(*aPresContext, &aReflowState);
|
||||
nscoord rowGroupYPos = borderPadding.top + cellSpacingY;
|
||||
|
||||
nsVoidArray rowGroups;
|
||||
|
@ -7519,7 +7518,7 @@ nsTableFrame::GetProperty(nsIPresContext* aPresContext,
|
|||
} else if (aCreateIfNecessary) {
|
||||
// The property isn't set yet, so allocate a new value, set the property,
|
||||
// and return the newly allocated value
|
||||
void* value;
|
||||
void* value = nsnull;
|
||||
NSFMPropertyDtorFunc dtorFunc;
|
||||
if (aPropertyName == nsLayoutAtoms::collapseOffsetProperty) {
|
||||
value = new nsPoint(0, 0);
|
||||
|
|
|
@ -3531,8 +3531,7 @@ nsTableFrame::DistributeHeightToRows(nsIPresContext* aPresContext,
|
|||
nscoord cellSpacingY = GetCellSpacingY();
|
||||
|
||||
nscoord sumOfRowHeights = 0;
|
||||
nsMargin borderPadding;
|
||||
GetChildAreaOffset(*aPresContext, &aReflowState);
|
||||
nsMargin borderPadding = GetChildAreaOffset(*aPresContext, &aReflowState);
|
||||
nscoord rowGroupYPos = borderPadding.top + cellSpacingY;
|
||||
|
||||
nsVoidArray rowGroups;
|
||||
|
@ -7519,7 +7518,7 @@ nsTableFrame::GetProperty(nsIPresContext* aPresContext,
|
|||
} else if (aCreateIfNecessary) {
|
||||
// The property isn't set yet, so allocate a new value, set the property,
|
||||
// and return the newly allocated value
|
||||
void* value;
|
||||
void* value = nsnull;
|
||||
NSFMPropertyDtorFunc dtorFunc;
|
||||
if (aPropertyName == nsLayoutAtoms::collapseOffsetProperty) {
|
||||
value = new nsPoint(0, 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче