Open
Bug 1855859
Opened 1 year ago
Updated 1 year ago
GetWindowDimensions() might be doing redundant work
Categories
(Firefox :: General, enhancement)
Firefox
General
Tracking
()
NEW
People
(Reporter: sfink, Unassigned)
References
Details
I have a profile that I made for another purpose, and I noticed some stalls. Looking into the longest one, it seems like nsFrameLoader::GetWindowDimensions
calls treeOwnerAsWin->GetPosition()
followed immediately by treeOwnerAsWin->GetSize()
, both of which end up calling nsWindow::GetScreenBounds
that does not appear to be fast, at least on gtk running on X11.
I don't really know anything about this stuff, but is it possible that making a combined GetPositionAndSize()
could save half of these calls?
You need to log in
before you can comment on or make changes to this bug.
Description
•