mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 84645. Put back logic that fixes |parentFrame| for continuations. r=rbs, sr=attinasi/hyatt.
This commit is contained in:
parent
d5460d02ef
commit
a1374d244f
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user