Fixed it so we clear the NS_FRAME_SYNC_FRAME_AND_VIEW bit, because the

default is that it's set


git-svn-id: svn://10.0.0.236/trunk@21868 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com 1999-02-25 05:41:05 +00:00
parent a89bc61e71
commit 51829aa69c
2 changed files with 4 additions and 4 deletions

View File

@ -39,8 +39,8 @@ nsSplittableFrame::Init(nsIPresContext& aPresContext,
// Make sure the general flags bits are the same
nsFrameState state;
aPrevInFlow->GetFrameState(&state);
if (state & NS_FRAME_SYNC_FRAME_AND_VIEW) {
mState |= NS_FRAME_SYNC_FRAME_AND_VIEW;
if ((state & NS_FRAME_SYNC_FRAME_AND_VIEW) == 0) {
mState &= ~NS_FRAME_SYNC_FRAME_AND_VIEW;
}
if (state & NS_FRAME_REPLACED_ELEMENT) {
mState |= NS_FRAME_REPLACED_ELEMENT;

View File

@ -39,8 +39,8 @@ nsSplittableFrame::Init(nsIPresContext& aPresContext,
// Make sure the general flags bits are the same
nsFrameState state;
aPrevInFlow->GetFrameState(&state);
if (state & NS_FRAME_SYNC_FRAME_AND_VIEW) {
mState |= NS_FRAME_SYNC_FRAME_AND_VIEW;
if ((state & NS_FRAME_SYNC_FRAME_AND_VIEW) == 0) {
mState &= ~NS_FRAME_SYNC_FRAME_AND_VIEW;
}
if (state & NS_FRAME_REPLACED_ELEMENT) {
mState |= NS_FRAME_REPLACED_ELEMENT;