From 42adb09633cab04b94de422eb0ba5b02e1f5b755 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Sat, 24 Apr 1999 04:53:42 +0000 Subject: [PATCH] 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 --- mozilla/layout/generic/nsHTMLContainerFrame.cpp | 8 +++++--- mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/mozilla/layout/generic/nsHTMLContainerFrame.cpp b/mozilla/layout/generic/nsHTMLContainerFrame.cpp index 1cecc46665d..3bf2f4f04e5 100644 --- a/mozilla/layout/generic/nsHTMLContainerFrame.cpp +++ b/mozilla/layout/generic/nsHTMLContainerFrame.cpp @@ -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 diff --git a/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp b/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp index 1cecc46665d..3bf2f4f04e5 100644 --- a/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp +++ b/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp @@ -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