From afc8cdb035ac5e7a5d052d304dad11b68dcb196e Mon Sep 17 00:00:00 2001 From: "jst%citec.fi" Date: Thu, 3 Feb 2000 15:41:04 +0000 Subject: [PATCH] Fixing linux build bustage, added missing .get()'s on nsCOMPtr's. r=kin@netscape.com --- layout/html/table/src/nsTableRowGroupFrame.cpp | 10 +++++----- layout/tables/nsTableRowGroupFrame.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/layout/html/table/src/nsTableRowGroupFrame.cpp b/layout/html/table/src/nsTableRowGroupFrame.cpp index 7ddc150876a..bf8ee158c08 100644 --- a/layout/html/table/src/nsTableRowGroupFrame.cpp +++ b/layout/html/table/src/nsTableRowGroupFrame.cpp @@ -565,7 +565,7 @@ AllocateSpecialHeight(nsIPresContext* aPresContext, while (cellFrame) { nsCOMPtr cellType; cellFrame->GetFrameType(getter_AddRefs(cellType)); - if (nsLayoutAtoms::tableCellFrame == cellType) { + if (nsLayoutAtoms::tableCellFrame == cellType.get()) { PRInt32 rowSpan = aTableFrame->GetEffectiveRowSpan((nsTableCellFrame&)*cellFrame); if (rowSpan > 1) { // use a simple average to allocate the special row. This is not exact, @@ -623,7 +623,7 @@ void nsTableRowGroupFrame::CalculateRowHeights(nsIPresContext* aPresContext, while (rowFrame) { nsCOMPtr frameType; rowFrame->GetFrameType(getter_AddRefs(frameType)); - if (nsLayoutAtoms::tableRowFrame == frameType) { + if (nsLayoutAtoms::tableRowFrame == frameType.get()) { if (startRowIndex == -1) { startRowIndex = ((nsTableRowFrame*)rowFrame)->GetRowIndex(); } @@ -667,14 +667,14 @@ void nsTableRowGroupFrame::CalculateRowHeights(nsIPresContext* aPresContext, while (rowFrame) { nsCOMPtr rowType; rowFrame->GetFrameType(getter_AddRefs(rowType)); - if (nsLayoutAtoms::tableRowFrame == rowType) { + if (nsLayoutAtoms::tableRowFrame == rowType.get()) { // check this row for a cell with rowspans nsIFrame* cellFrame; rowFrame->FirstChild(aPresContext, nsnull, &cellFrame); while (cellFrame) { nsCOMPtr cellType; cellFrame->GetFrameType(getter_AddRefs(cellType)); - if (nsLayoutAtoms::tableCellFrame == cellType) { + if (nsLayoutAtoms::tableCellFrame == cellType.get()) { PRInt32 rowSpan = tableFrame->GetEffectiveRowSpan(rowIndex + startRowIndex, (nsTableCellFrame&)*cellFrame); if (rowSpan > 1) { // found a cell with rowspan > 1, determine the height @@ -803,7 +803,7 @@ void nsTableRowGroupFrame::CalculateRowHeights(nsIPresContext* aPresContext, while (rowFrame) { nsCOMPtr rowType; rowFrame->GetFrameType(getter_AddRefs(rowType)); - if (nsLayoutAtoms::tableRowFrame == rowType) { + if (nsLayoutAtoms::tableRowFrame == rowType.get()) { // Notify the row of the new size ((nsTableRowFrame *)rowFrame)->DidResize(aPresContext, aReflowState); } diff --git a/layout/tables/nsTableRowGroupFrame.cpp b/layout/tables/nsTableRowGroupFrame.cpp index 7ddc150876a..bf8ee158c08 100644 --- a/layout/tables/nsTableRowGroupFrame.cpp +++ b/layout/tables/nsTableRowGroupFrame.cpp @@ -565,7 +565,7 @@ AllocateSpecialHeight(nsIPresContext* aPresContext, while (cellFrame) { nsCOMPtr cellType; cellFrame->GetFrameType(getter_AddRefs(cellType)); - if (nsLayoutAtoms::tableCellFrame == cellType) { + if (nsLayoutAtoms::tableCellFrame == cellType.get()) { PRInt32 rowSpan = aTableFrame->GetEffectiveRowSpan((nsTableCellFrame&)*cellFrame); if (rowSpan > 1) { // use a simple average to allocate the special row. This is not exact, @@ -623,7 +623,7 @@ void nsTableRowGroupFrame::CalculateRowHeights(nsIPresContext* aPresContext, while (rowFrame) { nsCOMPtr frameType; rowFrame->GetFrameType(getter_AddRefs(frameType)); - if (nsLayoutAtoms::tableRowFrame == frameType) { + if (nsLayoutAtoms::tableRowFrame == frameType.get()) { if (startRowIndex == -1) { startRowIndex = ((nsTableRowFrame*)rowFrame)->GetRowIndex(); } @@ -667,14 +667,14 @@ void nsTableRowGroupFrame::CalculateRowHeights(nsIPresContext* aPresContext, while (rowFrame) { nsCOMPtr rowType; rowFrame->GetFrameType(getter_AddRefs(rowType)); - if (nsLayoutAtoms::tableRowFrame == rowType) { + if (nsLayoutAtoms::tableRowFrame == rowType.get()) { // check this row for a cell with rowspans nsIFrame* cellFrame; rowFrame->FirstChild(aPresContext, nsnull, &cellFrame); while (cellFrame) { nsCOMPtr cellType; cellFrame->GetFrameType(getter_AddRefs(cellType)); - if (nsLayoutAtoms::tableCellFrame == cellType) { + if (nsLayoutAtoms::tableCellFrame == cellType.get()) { PRInt32 rowSpan = tableFrame->GetEffectiveRowSpan(rowIndex + startRowIndex, (nsTableCellFrame&)*cellFrame); if (rowSpan > 1) { // found a cell with rowspan > 1, determine the height @@ -803,7 +803,7 @@ void nsTableRowGroupFrame::CalculateRowHeights(nsIPresContext* aPresContext, while (rowFrame) { nsCOMPtr rowType; rowFrame->GetFrameType(getter_AddRefs(rowType)); - if (nsLayoutAtoms::tableRowFrame == rowType) { + if (nsLayoutAtoms::tableRowFrame == rowType.get()) { // Notify the row of the new size ((nsTableRowFrame *)rowFrame)->DidResize(aPresContext, aReflowState); }