зеркало из https://github.com/mozilla/gecko-dev.git
Back out part of checkin from yesterday due to regressions. b=79315
This commit is contained in:
Родитель
6f63e462ff
Коммит
62e37a22e9
|
@ -1221,6 +1221,13 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
|
||||||
|
|
||||||
// Size the frame, but |RelativePositionFrames| will size the view.
|
// Size the frame, but |RelativePositionFrames| will size the view.
|
||||||
aFrame->SetSize(nsSize(metrics.width, metrics.height));
|
aFrame->SetSize(nsSize(metrics.width, metrics.height));
|
||||||
|
// XXX We shouldn't need to size the view because
|
||||||
|
// |RelativePositionFrames| does it, but we need to. See
|
||||||
|
// http://bugzilla.mozilla.org/show_bug.cgi?id=79315#c67
|
||||||
|
if (aFrame->HasView()) {
|
||||||
|
nsIView* view = aFrame->GetView();
|
||||||
|
view->GetViewManager()->ResizeView(view, pfd->mCombinedArea);
|
||||||
|
}
|
||||||
|
|
||||||
// Tell the frame that we're done reflowing it
|
// Tell the frame that we're done reflowing it
|
||||||
aFrame->DidReflow(mPresContext, &reflowState, NS_FRAME_REFLOW_FINISHED);
|
aFrame->DidReflow(mPresContext, &reflowState, NS_FRAME_REFLOW_FINISHED);
|
||||||
|
|
|
@ -1221,6 +1221,13 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
|
||||||
|
|
||||||
// Size the frame, but |RelativePositionFrames| will size the view.
|
// Size the frame, but |RelativePositionFrames| will size the view.
|
||||||
aFrame->SetSize(nsSize(metrics.width, metrics.height));
|
aFrame->SetSize(nsSize(metrics.width, metrics.height));
|
||||||
|
// XXX We shouldn't need to size the view because
|
||||||
|
// |RelativePositionFrames| does it, but we need to. See
|
||||||
|
// http://bugzilla.mozilla.org/show_bug.cgi?id=79315#c67
|
||||||
|
if (aFrame->HasView()) {
|
||||||
|
nsIView* view = aFrame->GetView();
|
||||||
|
view->GetViewManager()->ResizeView(view, pfd->mCombinedArea);
|
||||||
|
}
|
||||||
|
|
||||||
// Tell the frame that we're done reflowing it
|
// Tell the frame that we're done reflowing it
|
||||||
aFrame->DidReflow(mPresContext, &reflowState, NS_FRAME_REFLOW_FINISHED);
|
aFrame->DidReflow(mPresContext, &reflowState, NS_FRAME_REFLOW_FINISHED);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче