Bug 84645. Put back logic that fixes |parentFrame| for continuations. r=rbs, sr=attinasi/hyatt.

This commit is contained in:
waterson%netscape.com 2001-06-29 23:28:13 +00:00
parent d5460d02ef
commit a1374d244f
2 changed files with 14 additions and 2 deletions

View File

@ -8585,7 +8585,13 @@ nsCSSFrameConstructor::ContentInserted(nsIPresContext* aPresContext,
// Get the geometric parent. Use the prev sibling if we have it;
// otherwise use the next sibling
if (!prevSibling && !nextSibling) {
if (prevSibling) {
prevSibling->GetParent(&parentFrame);
}
else if (nextSibling) {
nextSibling->GetParent(&parentFrame);
}
else {
// No previous or next sibling so treat this like an appended frame.
isAppend = PR_TRUE;

View File

@ -8585,7 +8585,13 @@ nsCSSFrameConstructor::ContentInserted(nsIPresContext* aPresContext,
// Get the geometric parent. Use the prev sibling if we have it;
// otherwise use the next sibling
if (!prevSibling && !nextSibling) {
if (prevSibling) {
prevSibling->GetParent(&parentFrame);
}
else if (nextSibling) {
nextSibling->GetParent(&parentFrame);
}
else {
// No previous or next sibling so treat this like an appended frame.
isAppend = PR_TRUE;