зеркало из https://github.com/mozilla/gecko-dev.git
Removed code from PrepareChildIncrementalReflow() that was marking all lines
dirty if max-element-size was requested.
This commit is contained in:
Родитель
ede359f291
Коммит
63a9d6b36f
|
@ -1994,18 +1994,6 @@ nsBlockFrame::PrepareInitialReflow(nsBlockReflowState& aState)
|
|||
nsresult
|
||||
nsBlockFrame::PrepareChildIncrementalReflow(nsBlockReflowState& aState)
|
||||
{
|
||||
// If by chance we are inside a table, then give up and reflow
|
||||
// everything because we don't cache max-element-size information in
|
||||
// the lines.
|
||||
// XXX Huh, that's not true anymore. We do cache the width component of
|
||||
// the max-element-size...
|
||||
if (aState.mComputeMaxElementSize) {
|
||||
#ifdef DEBUG_troy
|
||||
printf("BLOCK: marking all child frames dirty...\n");
|
||||
#endif
|
||||
return PrepareResizeReflow(aState);
|
||||
}
|
||||
|
||||
// Determine the line being impacted
|
||||
PRBool isFloater;
|
||||
nsLineBox* prevLine;
|
||||
|
|
|
@ -1994,18 +1994,6 @@ nsBlockFrame::PrepareInitialReflow(nsBlockReflowState& aState)
|
|||
nsresult
|
||||
nsBlockFrame::PrepareChildIncrementalReflow(nsBlockReflowState& aState)
|
||||
{
|
||||
// If by chance we are inside a table, then give up and reflow
|
||||
// everything because we don't cache max-element-size information in
|
||||
// the lines.
|
||||
// XXX Huh, that's not true anymore. We do cache the width component of
|
||||
// the max-element-size...
|
||||
if (aState.mComputeMaxElementSize) {
|
||||
#ifdef DEBUG_troy
|
||||
printf("BLOCK: marking all child frames dirty...\n");
|
||||
#endif
|
||||
return PrepareResizeReflow(aState);
|
||||
}
|
||||
|
||||
// Determine the line being impacted
|
||||
PRBool isFloater;
|
||||
nsLineBox* prevLine;
|
||||
|
|
|
@ -1994,18 +1994,6 @@ nsBlockFrame::PrepareInitialReflow(nsBlockReflowState& aState)
|
|||
nsresult
|
||||
nsBlockFrame::PrepareChildIncrementalReflow(nsBlockReflowState& aState)
|
||||
{
|
||||
// If by chance we are inside a table, then give up and reflow
|
||||
// everything because we don't cache max-element-size information in
|
||||
// the lines.
|
||||
// XXX Huh, that's not true anymore. We do cache the width component of
|
||||
// the max-element-size...
|
||||
if (aState.mComputeMaxElementSize) {
|
||||
#ifdef DEBUG_troy
|
||||
printf("BLOCK: marking all child frames dirty...\n");
|
||||
#endif
|
||||
return PrepareResizeReflow(aState);
|
||||
}
|
||||
|
||||
// Determine the line being impacted
|
||||
PRBool isFloater;
|
||||
nsLineBox* prevLine;
|
||||
|
|
|
@ -1994,18 +1994,6 @@ nsBlockFrame::PrepareInitialReflow(nsBlockReflowState& aState)
|
|||
nsresult
|
||||
nsBlockFrame::PrepareChildIncrementalReflow(nsBlockReflowState& aState)
|
||||
{
|
||||
// If by chance we are inside a table, then give up and reflow
|
||||
// everything because we don't cache max-element-size information in
|
||||
// the lines.
|
||||
// XXX Huh, that's not true anymore. We do cache the width component of
|
||||
// the max-element-size...
|
||||
if (aState.mComputeMaxElementSize) {
|
||||
#ifdef DEBUG_troy
|
||||
printf("BLOCK: marking all child frames dirty...\n");
|
||||
#endif
|
||||
return PrepareResizeReflow(aState);
|
||||
}
|
||||
|
||||
// Determine the line being impacted
|
||||
PRBool isFloater;
|
||||
nsLineBox* prevLine;
|
||||
|
|
|
@ -1994,18 +1994,6 @@ nsBlockFrame::PrepareInitialReflow(nsBlockReflowState& aState)
|
|||
nsresult
|
||||
nsBlockFrame::PrepareChildIncrementalReflow(nsBlockReflowState& aState)
|
||||
{
|
||||
// If by chance we are inside a table, then give up and reflow
|
||||
// everything because we don't cache max-element-size information in
|
||||
// the lines.
|
||||
// XXX Huh, that's not true anymore. We do cache the width component of
|
||||
// the max-element-size...
|
||||
if (aState.mComputeMaxElementSize) {
|
||||
#ifdef DEBUG_troy
|
||||
printf("BLOCK: marking all child frames dirty...\n");
|
||||
#endif
|
||||
return PrepareResizeReflow(aState);
|
||||
}
|
||||
|
||||
// Determine the line being impacted
|
||||
PRBool isFloater;
|
||||
nsLineBox* prevLine;
|
||||
|
|
|
@ -1994,18 +1994,6 @@ nsBlockFrame::PrepareInitialReflow(nsBlockReflowState& aState)
|
|||
nsresult
|
||||
nsBlockFrame::PrepareChildIncrementalReflow(nsBlockReflowState& aState)
|
||||
{
|
||||
// If by chance we are inside a table, then give up and reflow
|
||||
// everything because we don't cache max-element-size information in
|
||||
// the lines.
|
||||
// XXX Huh, that's not true anymore. We do cache the width component of
|
||||
// the max-element-size...
|
||||
if (aState.mComputeMaxElementSize) {
|
||||
#ifdef DEBUG_troy
|
||||
printf("BLOCK: marking all child frames dirty...\n");
|
||||
#endif
|
||||
return PrepareResizeReflow(aState);
|
||||
}
|
||||
|
||||
// Determine the line being impacted
|
||||
PRBool isFloater;
|
||||
nsLineBox* prevLine;
|
||||
|
|
Загрузка…
Ссылка в новой задаче