зеркало из https://github.com/mozilla/gecko-dev.git
Родитель
bc9197fc27
Коммит
a57c2f071c
|
@ -51,7 +51,9 @@ nsBlockReflowContext::nsBlockReflowContext(nsIPresContext* aPresContext,
|
|||
mOuterReflowState(aParentRS),
|
||||
mMetrics(aComputeMaxElementSize ? &mMaxElementSize : nsnull),
|
||||
mMaxElementSize(0, 0),
|
||||
mComputeMaximumWidth(aComputeMaximumWidth)
|
||||
mIsTable(PR_FALSE),
|
||||
mComputeMaximumWidth(aComputeMaximumWidth),
|
||||
mBlockShouldInvalidateItself(PR_FALSE)
|
||||
{
|
||||
mStyleSpacing = nsnull;
|
||||
}
|
||||
|
@ -292,6 +294,12 @@ nsBlockReflowContext::ReflowBlock(nsIFrame* aFrame,
|
|||
reason = eReflowReason_Dirty;
|
||||
}
|
||||
}
|
||||
if (eReflowReason_Resize == reason) {
|
||||
// we're doing a resize reflow, even though our outer reflow state is incremental
|
||||
// text (and possibly other objects) don't do incremental painting for resize reflows
|
||||
// so, we have to handle the invalidation for repainting ourselves
|
||||
mBlockShouldInvalidateItself = PR_TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,9 @@ nsBlockReflowContext::nsBlockReflowContext(nsIPresContext* aPresContext,
|
|||
mOuterReflowState(aParentRS),
|
||||
mMetrics(aComputeMaxElementSize ? &mMaxElementSize : nsnull),
|
||||
mMaxElementSize(0, 0),
|
||||
mComputeMaximumWidth(aComputeMaximumWidth)
|
||||
mIsTable(PR_FALSE),
|
||||
mComputeMaximumWidth(aComputeMaximumWidth),
|
||||
mBlockShouldInvalidateItself(PR_FALSE)
|
||||
{
|
||||
mStyleSpacing = nsnull;
|
||||
}
|
||||
|
@ -292,6 +294,12 @@ nsBlockReflowContext::ReflowBlock(nsIFrame* aFrame,
|
|||
reason = eReflowReason_Dirty;
|
||||
}
|
||||
}
|
||||
if (eReflowReason_Resize == reason) {
|
||||
// we're doing a resize reflow, even though our outer reflow state is incremental
|
||||
// text (and possibly other objects) don't do incremental painting for resize reflows
|
||||
// so, we have to handle the invalidation for repainting ourselves
|
||||
mBlockShouldInvalidateItself = PR_TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче