diff --git a/content/base/src/nsDocumentViewer.cpp b/content/base/src/nsDocumentViewer.cpp index 0267a39805d..77a209c0804 100644 --- a/content/base/src/nsDocumentViewer.cpp +++ b/content/base/src/nsDocumentViewer.cpp @@ -3149,8 +3149,6 @@ DocumentViewerImpl::PrintPreviewNavigate(PRInt16 aType, PRInt32 aPageNum) } // Figure where we are currently scrolled to - const nsIView * clippedView; - scrollableView->GetClipView(&clippedView); nscoord x; nscoord y; scrollableView->GetScrollPosition(x, y); diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index 0267a39805d..77a209c0804 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/layout/base/nsDocumentViewer.cpp @@ -3149,8 +3149,6 @@ DocumentViewerImpl::PrintPreviewNavigate(PRInt16 aType, PRInt32 aPageNum) } // Figure where we are currently scrolled to - const nsIView * clippedView; - scrollableView->GetClipView(&clippedView); nscoord x; nscoord y; scrollableView->GetScrollPosition(x, y);