Bug 124554. Make intelligent decisions about when to scroll using bitblit and when we need to do complete repaints. r=kmcclusk,sr=attinasi,a=asa

git-svn-id: svn://10.0.0.236/trunk@116830 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2002-03-19 03:34:10 +00:00
parent 33a838b10e
commit cd6104bd5c
5 changed files with 192 additions and 25 deletions

View File

@@ -1679,17 +1679,14 @@ NS_IMETHODIMP nsScrollingView::ScrollByWhole(PRBool aTop)
PRBool nsScrollingView::CannotBitBlt(nsView* aScrolledView)
{
PRBool trans;
float opacity;
PRUint32 scrolledViewFlags;
HasTransparency(trans);
GetOpacity(opacity);
aScrolledView->GetViewFlags(&scrolledViewFlags);
return ((trans || opacity) && !(mScrollProperties & NS_SCROLL_PROPERTY_ALWAYS_BLIT)) ||
(mScrollProperties & NS_SCROLL_PROPERTY_NEVER_BLIT) ||
(scrolledViewFlags & NS_VIEW_FLAG_DONT_BITBLT);
return (mScrollProperties & NS_SCROLL_PROPERTY_NEVER_BLIT) ||
(scrolledViewFlags & NS_VIEW_FLAG_DONT_BITBLT) ||
(!(mScrollProperties & NS_SCROLL_PROPERTY_ALWAYS_BLIT)
&& !mViewManager->CanScrollWithBitBlt(mClipView));
}
void nsScrollingView::Scroll(nsView *aScrolledView, PRInt32 aDx, PRInt32 aDy,