Back out part of checkin from yesterday due to regressions. b=79315

This commit is contained in:
dbaron%dbaron.org 2003-07-23 22:46:48 +00:00
Родитель 6f63e462ff
Коммит 62e37a22e9
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -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);