Commit 3826f9f6 authored by Emilio Cobos Álvarez's avatar Emilio Cobos Álvarez Committed by Pier Angelo Vendrame
Browse files

Bug 2045394 - Fix nsFrameSetFrame primary frame handling of children. r=layout-reviewers,dshin

As always, frameset still sucks.

Differential Revision: https://phabricator.services.mozilla.com/D305125
parent da4b5b7d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -305,7 +305,11 @@ void nsHTMLFramesetFrame::Init(nsIContent* aContent, nsContainerFrame* aParent,
      mChildFrameborder[mChildCount] = GetFrameBorder(child);
      mChildBorderColors[mChildCount].Set(GetBorderColor(child));
    }
    if (MOZ_LIKELY(!child->GetPrimaryFrame())) {
      // Child might have a pre-existing primary frame if we're doing fixed-pos
      // replication... This code is really disgusting.
      child->SetPrimaryFrame(frame);
    }

    mFrames.AppendFrame(nullptr, frame);