зеркало из https://github.com/mozilla/pjs.git
Bug 87381. Remove extra dirty reflow when BRS_ISINLINEINCRREFLOW. r=rbs, sr=attinasi.
This commit is contained in:
Родитель
a977f84c36
Коммит
64db70b23f
|
@ -815,17 +815,6 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
// Compute our final size
|
||||
ComputeFinalSize(aReflowState, state, aMetrics);
|
||||
|
||||
if (state.GetFlag(BRS_ISINLINEINCRREFLOW)) {
|
||||
// Mark this block frame as having a dirty child
|
||||
// XXX: we should be able to optimize this so we only call ReflowDirtyChild
|
||||
// if it's absolutely necessary: something on the line changed size.
|
||||
if (!IsIncrementalDamageConstrained(state)) {
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
aPresContext->GetShell(getter_AddRefs(shell));
|
||||
ReflowDirtyChild(shell, state.mNextRCFrame);
|
||||
}
|
||||
}
|
||||
|
||||
// see if verifyReflow is enabled, and if so store off the space manager pointer
|
||||
#ifdef DEBUG
|
||||
PRInt32 verifyReflowFlags = nsIPresShell::GetVerifyReflowFlags();
|
||||
|
|
|
@ -815,17 +815,6 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
// Compute our final size
|
||||
ComputeFinalSize(aReflowState, state, aMetrics);
|
||||
|
||||
if (state.GetFlag(BRS_ISINLINEINCRREFLOW)) {
|
||||
// Mark this block frame as having a dirty child
|
||||
// XXX: we should be able to optimize this so we only call ReflowDirtyChild
|
||||
// if it's absolutely necessary: something on the line changed size.
|
||||
if (!IsIncrementalDamageConstrained(state)) {
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
aPresContext->GetShell(getter_AddRefs(shell));
|
||||
ReflowDirtyChild(shell, state.mNextRCFrame);
|
||||
}
|
||||
}
|
||||
|
||||
// see if verifyReflow is enabled, and if so store off the space manager pointer
|
||||
#ifdef DEBUG
|
||||
PRInt32 verifyReflowFlags = nsIPresShell::GetVerifyReflowFlags();
|
||||
|
|
Загрузка…
Ссылка в новой задаче