зеркало из https://github.com/mozilla/gecko-dev.git
Use GetGeometricParent() to determine geometric parent of XTF frames - see bug #253225, comment#30. r+sr=bzbarsky. Affects XTF-enabled builds only.
This commit is contained in:
Родитель
c237520c89
Коммит
52024b5f77
|
@ -6866,13 +6866,9 @@ nsCSSFrameConstructor::ConstructXTFFrame(nsIPresShell* aPresShell,
|
|||
// If we succeeded in creating a frame then initialize it, process its
|
||||
// children (if requested), and set the initial child list
|
||||
if (NS_SUCCEEDED(rv) && newFrame != nsnull) {
|
||||
|
||||
nsIFrame* geometricParent = isAbsolutelyPositioned
|
||||
? aState.mAbsoluteItems.containingBlock
|
||||
: aParentFrame;
|
||||
|
||||
InitAndRestoreFrame(aPresContext, aState, aContent,
|
||||
geometricParent, aStyleContext, nsnull, newFrame);
|
||||
aState.GetGeometricParent(disp, aParentFrame),
|
||||
aStyleContext, nsnull, newFrame);
|
||||
|
||||
nsHTMLContainerFrame::CreateViewForFrame(newFrame, aParentFrame, forceView);
|
||||
|
||||
|
|
|
@ -6866,13 +6866,9 @@ nsCSSFrameConstructor::ConstructXTFFrame(nsIPresShell* aPresShell,
|
|||
// If we succeeded in creating a frame then initialize it, process its
|
||||
// children (if requested), and set the initial child list
|
||||
if (NS_SUCCEEDED(rv) && newFrame != nsnull) {
|
||||
|
||||
nsIFrame* geometricParent = isAbsolutelyPositioned
|
||||
? aState.mAbsoluteItems.containingBlock
|
||||
: aParentFrame;
|
||||
|
||||
InitAndRestoreFrame(aPresContext, aState, aContent,
|
||||
geometricParent, aStyleContext, nsnull, newFrame);
|
||||
aState.GetGeometricParent(disp, aParentFrame),
|
||||
aStyleContext, nsnull, newFrame);
|
||||
|
||||
nsHTMLContainerFrame::CreateViewForFrame(newFrame, aParentFrame, forceView);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче