From bc13612958627918c3887f942c180d447b2b4ef0 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Thu, 14 Oct 1999 04:47:18 +0000 Subject: [PATCH] b=16238. Fix discussed with evaughan@netscape. One line change to make sure the default area frame flag of NS_BLOCK_SPACE_MGR is used for scrolled elements git-svn-id: svn://10.0.0.236/trunk@50656 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSFrameConstructor.cpp | 3 ++- mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 7cb16fe3cc1..88fb5c67256 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -4752,7 +4752,8 @@ nsCSSFrameConstructor::ConstructFrameByDisplayType(nsIPresContext* aPre nsIFrame* scrolledFrame = nsnull; - NS_NewAreaFrame(&scrolledFrame, NS_BLOCK_SHRINK_WRAP | NS_BLOCK_MARGIN_ROOT); + NS_NewAreaFrame(&scrolledFrame, NS_BLOCK_SPACE_MGR | + NS_BLOCK_SHRINK_WRAP | NS_BLOCK_MARGIN_ROOT); nsIStyleContext* newStyle = nsnull; diff --git a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp index 7cb16fe3cc1..88fb5c67256 100644 --- a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -4752,7 +4752,8 @@ nsCSSFrameConstructor::ConstructFrameByDisplayType(nsIPresContext* aPre nsIFrame* scrolledFrame = nsnull; - NS_NewAreaFrame(&scrolledFrame, NS_BLOCK_SHRINK_WRAP | NS_BLOCK_MARGIN_ROOT); + NS_NewAreaFrame(&scrolledFrame, NS_BLOCK_SPACE_MGR | + NS_BLOCK_SHRINK_WRAP | NS_BLOCK_MARGIN_ROOT); nsIStyleContext* newStyle = nsnull;