From ad35cb911afddbc6037873961c8bf2e2212cfb2d Mon Sep 17 00:00:00 2001 From: kipp Date: Tue, 30 Jun 1998 20:20:29 +0000 Subject: [PATCH] disabled calls to PropagateContentOffsets for now git-svn-id: svn://10.0.0.236/trunk@4728 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsHTMLContainerFrame.cpp | 4 ++++ mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/mozilla/layout/generic/nsHTMLContainerFrame.cpp b/mozilla/layout/generic/nsHTMLContainerFrame.cpp index 01979253cac..1e3c1b1085e 100644 --- a/mozilla/layout/generic/nsHTMLContainerFrame.cpp +++ b/mozilla/layout/generic/nsHTMLContainerFrame.cpp @@ -225,11 +225,13 @@ NS_METHOD nsHTMLContainerFrame::ContentInserted(nsIPresShell* aShell, if (mLastContentOffset >= aIndexInParent) { AdjustIndexInParents(frame, aContainer, aIndexInParent, ::ContentInserted); +#if XXX // If the frame is being used as a pseudo-frame then make sure to propagate // the content offsets back up the tree if (isPseudoFrame) { frame->PropagateContentOffsets(); } +#endif } frame->GetNextInFlow((nsIFrame*&)frame); @@ -289,9 +291,11 @@ NS_METHOD nsHTMLContainerFrame::ContentInserted(nsIPresShell* aShell, // The new frame is the last child frame parent->SetLastContentOffset(newFrame); +#if XXX if (parent->IsPseudoFrame()) { parent->PropagateContentOffsets(); } +#endif } } parent->mChildCount++; diff --git a/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp b/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp index 01979253cac..1e3c1b1085e 100644 --- a/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp +++ b/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp @@ -225,11 +225,13 @@ NS_METHOD nsHTMLContainerFrame::ContentInserted(nsIPresShell* aShell, if (mLastContentOffset >= aIndexInParent) { AdjustIndexInParents(frame, aContainer, aIndexInParent, ::ContentInserted); +#if XXX // If the frame is being used as a pseudo-frame then make sure to propagate // the content offsets back up the tree if (isPseudoFrame) { frame->PropagateContentOffsets(); } +#endif } frame->GetNextInFlow((nsIFrame*&)frame); @@ -289,9 +291,11 @@ NS_METHOD nsHTMLContainerFrame::ContentInserted(nsIPresShell* aShell, // The new frame is the last child frame parent->SetLastContentOffset(newFrame); +#if XXX if (parent->IsPseudoFrame()) { parent->PropagateContentOffsets(); } +#endif } } parent->mChildCount++;