зеркало из https://github.com/mozilla/pjs.git
Bug 446363: remove unused variable, r+sr=roc
This commit is contained in:
Родитель
e7f111940b
Коммит
2a378f2989
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче