From 2a378f29895adf9ab000224600990059de0f4457 Mon Sep 17 00:00:00 2001 From: Gavin Sharp Date: Mon, 21 Jul 2008 05:59:06 -0400 Subject: [PATCH] Bug 446363: remove unused variable, r+sr=roc --- view/src/nsScrollPortView.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/view/src/nsScrollPortView.cpp b/view/src/nsScrollPortView.cpp index aa70c7d8ceb..0fb774310ff 100644 --- a/view/src/nsScrollPortView.cpp +++ b/view/src/nsScrollPortView.cpp @@ -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