зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2718657fe5
Коммит
cf68bc3e13
|
@ -282,7 +282,7 @@ void ViewportFrame::Reflow(nsPresContext* aPresContext,
|
||||||
if (mFrames.NotEmpty()) {
|
if (mFrames.NotEmpty()) {
|
||||||
// Deal with a non-incremental reflow or an incremental reflow
|
// Deal with a non-incremental reflow or an incremental reflow
|
||||||
// targeted at our one-and-only principal child frame.
|
// targeted at our one-and-only principal child frame.
|
||||||
if (aReflowInput.ShouldReflowAllKids() || aReflowInput.IsBResize() ||
|
if (aReflowInput.ShouldReflowAllKids() ||
|
||||||
mFrames.FirstChild()->IsSubtreeDirty()) {
|
mFrames.FirstChild()->IsSubtreeDirty()) {
|
||||||
// Reflow our one-and-only principal child frame
|
// Reflow our one-and-only principal child frame
|
||||||
nsIFrame* kidFrame = mFrames.FirstChild();
|
nsIFrame* kidFrame = mFrames.FirstChild();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче