Bug 1656385 - Remove redundant IsBResize() in ViewportFrame::Reflow(). r=emilio

aReflowInput.ShouldReflowAllKids() already checks IsBResize() and
ViewportFrame always has NS_FRAME_CONTAINS_RELATIVE_BSIZE set at the
beginning of Reflow().

Differential Revision: https://phabricator.services.mozilla.com/D85494
This commit is contained in:
Ting-Yu Lin 2020-07-31 17:37:20 +00:00
Родитель 2718657fe5
Коммит cf68bc3e13
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -282,7 +282,7 @@ void ViewportFrame::Reflow(nsPresContext* aPresContext,
if (mFrames.NotEmpty()) {
// Deal with a non-incremental reflow or an incremental reflow
// targeted at our one-and-only principal child frame.
if (aReflowInput.ShouldReflowAllKids() || aReflowInput.IsBResize() ||
if (aReflowInput.ShouldReflowAllKids() ||
mFrames.FirstChild()->IsSubtreeDirty()) {
// Reflow our one-and-only principal child frame
nsIFrame* kidFrame = mFrames.FirstChild();