Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Backout 4f90fc4e6063 for having the wrong commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwoodrow committed Aug 25, 2016
1 parent 342b686 commit 1b16b68
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions layout/generic/nsGfxScrollFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1034,16 +1034,6 @@ nsHTMLScrollFrame::Reflow(nsPresContext* aPresContext,

ReflowContents(&state, aDesiredSize);

aDesiredSize.Width() = state.mInsideBorderSize.width +
state.mComputedBorder.LeftRight();
aDesiredSize.Height() = state.mInsideBorderSize.height +
state.mComputedBorder.TopBottom();

// Set the size of the frame now since computing the perspective-correct
// overflow (within PlaceScrollArea) can rely on it.
SetSize(aDesiredSize.GetWritingMode(),
aDesiredSize.Size(aDesiredSize.GetWritingMode()));

// Restore the old scroll position, for now, even if that's not valid anymore
// because we changed size. We'll fix it up in a post-reflow callback, because
// our current size may only be temporary (e.g. we're compute XUL desired sizes).
Expand Down Expand Up @@ -1083,6 +1073,11 @@ nsHTMLScrollFrame::Reflow(nsPresContext* aPresContext,
}
}

aDesiredSize.Width() = state.mInsideBorderSize.width +
state.mComputedBorder.LeftRight();
aDesiredSize.Height() = state.mInsideBorderSize.height +
state.mComputedBorder.TopBottom();

aDesiredSize.SetOverflowAreasToDesiredBounds();
if (mHelper.IsIgnoringViewportClipping()) {
aDesiredSize.mOverflowAreas.UnionWith(
Expand Down

0 comments on commit 1b16b68

Please sign in to comment.