зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1564649 - Remove a duplicate variable where we had two variables for the same thing, and a little related cleanup. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D37515 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
aa72612d04
Коммит
e7834460f9
|
@ -555,9 +555,9 @@ nsColumnSetFrame::ColumnBalanceData nsColumnSetFrame::ReflowChildren(
|
|||
ColumnBalanceData colData;
|
||||
bool allFit = true;
|
||||
WritingMode wm = GetWritingMode();
|
||||
bool isRTL = !wm.IsBidiLTR();
|
||||
bool shrinkingBSize = mLastBalanceBSize > aConfig.mColMaxBSize;
|
||||
bool changingBSize = mLastBalanceBSize != aConfig.mColMaxBSize;
|
||||
const bool isRTL = !wm.IsBidiLTR();
|
||||
const bool shrinkingBSize = mLastBalanceBSize > aConfig.mColMaxBSize;
|
||||
const bool changingBSize = mLastBalanceBSize != aConfig.mColMaxBSize;
|
||||
|
||||
COLUMN_SET_LOG(
|
||||
"%s: Doing column reflow pass: mLastBalanceBSize=%d,"
|
||||
|
@ -568,9 +568,7 @@ nsColumnSetFrame::ColumnBalanceData nsColumnSetFrame::ReflowChildren(
|
|||
|
||||
DrainOverflowColumns();
|
||||
|
||||
const bool colBSizeChanged = mLastBalanceBSize != aConfig.mColMaxBSize;
|
||||
|
||||
if (colBSizeChanged) {
|
||||
if (changingBSize) {
|
||||
mLastBalanceBSize = aConfig.mColMaxBSize;
|
||||
// XXX Seems like this could fire if incremental reflow pushed the column
|
||||
// set down so we reflow incrementally with a different available height.
|
||||
|
@ -726,7 +724,7 @@ nsColumnSetFrame::ColumnBalanceData nsColumnSetFrame::ReflowChildren(
|
|||
|
||||
// We need to reflow any float placeholders, even if our column block-size
|
||||
// hasn't changed.
|
||||
kidReflowInput.mFlags.mMustReflowPlaceholders = !colBSizeChanged;
|
||||
kidReflowInput.mFlags.mMustReflowPlaceholders = !changingBSize;
|
||||
|
||||
COLUMN_SET_LOG(
|
||||
"%s: Reflowing child #%d %p: availSize=(%d,%d), kidCBSize=(%d,%d)",
|
||||
|
|
Загрузка…
Ссылка в новой задаче