Closed Bug 311592 Opened 19 years ago Closed 18 years ago

Toggling backgrounds on lots of abs pos divs is O(N^2)

Categories

(Core :: Web Painting, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bzbarsky, Assigned: roc)

References

(Depends on 2 open bugs, )

Details

(Keywords: perf)

The first time we set backgrounds on the divs takes O(N^2) time, since we call nsViewManager::SetViewContentTransparency on each one, which does a IsViewInserted, which is O(N) in number of previous siblings. Perhaps we should store the inserted bit on the view itself or something?
We should, yes. But a) we won't be fixing this on branch and b) on trunk I want the entire view tree to go away.
Makes sense. I'm just making sure I get bugs filed on all the stuff that pops up as I profile the tests in bug 297959.
Isn't this bug 233441 ?
Dependent, not same. We could fix this bug in other ways, possibly.
Depends on: 233441
Depends on: 337801
Is this still a problem? SetViewContentTransparency was removed in Bug 370379, and abs. pos. divs no longer create views.
Yeah, this is no longer an issue.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.