Fixed a problem where CreateViewForFrame() was setting NS_VIEW_PUBLIC_FLAG_DONT_BITBLT

all the time


git-svn-id: svn://10.0.0.236/trunk@29033 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com 1999-04-24 04:53:42 +00:00
parent 55fcec43e4
commit 42adb09633
2 changed files with 10 additions and 6 deletions

View File

@ -338,9 +338,11 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext& aPresContext,
// If the frame has a fixed background attachment, then indicate that the
// view's contents should repainted and not bitblt'd
PRUint32 viewFlags;
view->GetViewFlags(&viewFlags);
view->SetViewFlags(viewFlags | NS_VIEW_PUBLIC_FLAG_DONT_BITBLT);
if (fixedBackgroundAttachment) {
PRUint32 viewFlags;
view->GetViewFlags(&viewFlags);
view->SetViewFlags(viewFlags | NS_VIEW_PUBLIC_FLAG_DONT_BITBLT);
}
// Insert the view into the view hierarchy. If the parent view is a
// scrolling view we need to do this differently

View File

@ -338,9 +338,11 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext& aPresContext,
// If the frame has a fixed background attachment, then indicate that the
// view's contents should repainted and not bitblt'd
PRUint32 viewFlags;
view->GetViewFlags(&viewFlags);
view->SetViewFlags(viewFlags | NS_VIEW_PUBLIC_FLAG_DONT_BITBLT);
if (fixedBackgroundAttachment) {
PRUint32 viewFlags;
view->GetViewFlags(&viewFlags);
view->SetViewFlags(viewFlags | NS_VIEW_PUBLIC_FLAG_DONT_BITBLT);
}
// Insert the view into the view hierarchy. If the parent view is a
// scrolling view we need to do this differently