diff --git a/layout/html/table/src/nsTableRowGroupFrame.cpp b/layout/html/table/src/nsTableRowGroupFrame.cpp
index 42938812b7e4..064078349887 100644
--- a/layout/html/table/src/nsTableRowGroupFrame.cpp
+++ b/layout/html/table/src/nsTableRowGroupFrame.cpp
@@ -1781,14 +1781,14 @@ nsTableRowGroupFrame::FindFrameAt(PRInt32 aLineNumber, nscoord aX, nsIFrame** aF
{//only do this once
nsRect parentRect;
nsRect& parentRectRef = parentRect;
- nsIFrame* parentFrame;
+ nsIFrame* tempParentFrame;
- rv = tempFrame->GetParent(&parentFrame);
+ rv = tempFrame->GetParent(&tempParentFrame);
- if(NS_FAILED(rv) || !parentFrame)
+ if(NS_FAILED(rv) || !tempParentFrame)
return rv?rv:NS_ERROR_FAILURE;
- parentFrame->GetRect(parentRectRef);
+ tempParentFrame->GetRect(parentRectRef);
aX -= parentRect.x;
gotParentRect = PR_TRUE;
}
diff --git a/layout/tables/nsTableRowGroupFrame.cpp b/layout/tables/nsTableRowGroupFrame.cpp
index 42938812b7e4..064078349887 100644
--- a/layout/tables/nsTableRowGroupFrame.cpp
+++ b/layout/tables/nsTableRowGroupFrame.cpp
@@ -1781,14 +1781,14 @@ nsTableRowGroupFrame::FindFrameAt(PRInt32 aLineNumber, nscoord aX, nsIFrame** aF
{//only do this once
nsRect parentRect;
nsRect& parentRectRef = parentRect;
- nsIFrame* parentFrame;
+ nsIFrame* tempParentFrame;
- rv = tempFrame->GetParent(&parentFrame);
+ rv = tempFrame->GetParent(&tempParentFrame);
- if(NS_FAILED(rv) || !parentFrame)
+ if(NS_FAILED(rv) || !tempParentFrame)
return rv?rv:NS_ERROR_FAILURE;
- parentFrame->GetRect(parentRectRef);
+ tempParentFrame->GetRect(parentRectRef);
aX -= parentRect.x;
gotParentRect = PR_TRUE;
}