mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00
Bug 457514. If an out of flow first letter frame is the insertion parent, then use the placeholder frame to get the parent, not the out of flow frame. r=bz
--HG-- extra : rebase_source : 8913cd4c0484baecba53d239263a761b9c9dcf8b
This commit is contained in:
parent
575feb2291
commit
30563bd0e3
@ -6674,7 +6674,16 @@ nsCSSFrameConstructor::ContentInserted(nsIContent* aContainer,
|
|||||||
// If our current parentFrame is a Letter frame, use its parent as our
|
// If our current parentFrame is a Letter frame, use its parent as our
|
||||||
// new parent hint
|
// new parent hint
|
||||||
if (parentFrame->GetType() == nsGkAtoms::letterFrame) {
|
if (parentFrame->GetType() == nsGkAtoms::letterFrame) {
|
||||||
parentFrame = parentFrame->GetParent();
|
// If parentFrame is out of flow, then we actually want the parent of
|
||||||
|
// the placeholder frame.
|
||||||
|
if (parentFrame->GetStateBits() & NS_FRAME_OUT_OF_FLOW) {
|
||||||
|
nsPlaceholderFrame* placeholderFrame =
|
||||||
|
state.mFrameManager->GetPlaceholderFrameFor(parentFrame);
|
||||||
|
NS_ASSERTION(placeholderFrame, "No placeholder for out-of-flow?");
|
||||||
|
parentFrame = placeholderFrame->GetParent();
|
||||||
|
} else {
|
||||||
|
parentFrame = parentFrame->GetParent();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove the old letter frames before doing the insertion
|
// Remove the old letter frames before doing the insertion
|
||||||
|
Loading…
x
Reference in New Issue
Block a user