Skip to content

Commit

Permalink
Backed out changeset 1fc0ecca3e9b (bug 1153695) for test_value_clonin…
Browse files Browse the repository at this point in the history
…g.html bustage CLOSED TREE

--HG--
extra : commitid : Cehes9e2lBC
  • Loading branch information
KWierso committed Nov 16, 2015
1 parent 74584ef commit 31d3e04
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions layout/generic/nsBlockFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4713,20 +4713,18 @@ nsBlockFrame::DrainSelfOverflowList()

// No need to reparent frames in our own overflow lines/oofs, because they're
// already ours. But we should put overflow floats back in mFloats.
// (explicit scope to remove the OOF list before VerifyOverflowSituation)
{
nsAutoOOFFrameList oofs(this);
if (oofs.mList.NotEmpty()) {
nsAutoOOFFrameList oofs(this);
if (oofs.mList.NotEmpty()) {
#ifdef DEBUG
for (nsIFrame* f : oofs.mList) {
MOZ_ASSERT(!(f->GetStateBits() & NS_FRAME_IS_PUSHED_FLOAT),
"CollectFloats should've removed that bit");
}
#endif
// The overflow floats go after our regular floats.
mFloats.AppendFrames(nullptr, oofs.mList);
for (nsIFrame* f : oofs.mList) {
MOZ_ASSERT(!(f->GetStateBits() & NS_FRAME_IS_PUSHED_FLOAT),
"CollectFloats should've removed that bit");
}
#endif
// The overflow floats go after our regular floats.
mFloats.AppendFrames(nullptr, oofs.mList);
}

if (!ourOverflowLines->mLines.empty()) {
mFrames.AppendFrames(nullptr, ourOverflowLines->mFrames);
mLines.splice(mLines.end(), ourOverflowLines->mLines);
Expand Down

0 comments on commit 31d3e04

Please sign in to comment.