Bug 446363: remove unused variable, r+sr=roc

This commit is contained in:
Gavin Sharp 2008-07-21 05:59:06 -04:00
parent 51e965223e
commit 4fc8624895

View File

@ -522,17 +522,9 @@ void nsScrollPortView::Scroll(nsView *aScrolledView, nsPoint aTwipsDelta, nsPoin
{
nsIWidget *scrollWidget = GetWidget();
nsRegion updateRegion;
PRBool canBitBlit = PR_TRUE;
if (!scrollWidget) {
canBitBlit = PR_FALSE;
} else {
PRUint32 scrolledViewFlags = aScrolledView->GetViewFlags();
if ((!(mScrollProperties & NS_SCROLL_PROPERTY_ALWAYS_BLIT) &&
!mViewManager->CanScrollWithBitBlt(aScrolledView, aTwipsDelta, &updateRegion))) {
canBitBlit = PR_FALSE;
}
}
PRBool canBitBlit = scrollWidget &&
((mScrollProperties & NS_SCROLL_PROPERTY_ALWAYS_BLIT) ||
mViewManager->CanScrollWithBitBlt(aScrolledView, aTwipsDelta, &updateRegion));
if (canBitBlit) {
// We're going to bit-blit. Let the viewmanager know so it can