mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 05:14:24 +00:00
Fix bug 311615 -- don't reframe the containing block if a current inline is
being reframed. r+sr=roc
This commit is contained in:
parent
1a55915626
commit
3a58eba127
@ -11593,12 +11593,15 @@ nsCSSFrameConstructor::RecreateFramesForContent(nsIContent* aContent)
|
||||
ApplyRenderingChangeToTree(presContext, ancestor, nsnull,
|
||||
nsChangeHint_RepaintFrame);
|
||||
|
||||
// If the frame is an anonymous frame created as part of
|
||||
// inline-in-block splitting --- or if its parent is
|
||||
// such an anonymous frame (i.e., this frame was the cause
|
||||
// of such splitting), then recreate the containing block.
|
||||
// If the frame is an anonymous frame created as part of inline-in-block
|
||||
// splitting --- or if its parent is such an anonymous frame (i.e., this
|
||||
// frame might have been the cause of such splitting), then recreate the
|
||||
// containing block. Note that if |frame| is an inline, then it can't
|
||||
// possibly have caused the splitting, and if the inline is changing to a
|
||||
// block, any reframing that's needed will happen in ContentInserted.
|
||||
if (MaybeRecreateContainerForIBSplitterFrame(frame, &rv) ||
|
||||
MaybeRecreateContainerForIBSplitterFrame(frame->GetParent(), &rv))
|
||||
(!IsInlineFrame(frame) &&
|
||||
MaybeRecreateContainerForIBSplitterFrame(frame->GetParent(), &rv)))
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user