Fix performance problem on home.netscape.com: Don't do full reflow of all absolutely positioned elements whose containing block is on the path to the target of an incremental reflow. b=146831 sr=waterson r=kin

This commit is contained in:
dbaron@fas.harvard.edu
2002-06-12 03:21:00 +00:00
parent 61a2eed3cd
commit f87e9ee15f
6 changed files with 88 additions and 18 deletions

View File

@@ -194,8 +194,11 @@ nsAbsoluteContainingBlock::Reflow(nsIFrame* aDelegatingFrame,
// Initialize OUT parameter
aChildBounds.SetRect(0, 0, 0, 0);
// Make a copy of the reflow state. If the reason is eReflowReason_Incremental,
// then change it to eReflowReason_Resize
// Make a copy of the reflow state. If the reason is
// eReflowReason_Incremental (which should mean either that the target
// is the frame for which this is the absolute container or that the
// container changed size due to incremental reflow of its children),
// then change it to eReflowReason_Resize.
nsHTMLReflowState reflowState(aReflowState);
if (eReflowReason_Incremental == reflowState.reason) {
reflowState.reason = eReflowReason_Resize;