Open
Bug 136301
Opened 23 years ago
Updated 2 years ago
mousing over menus causes reflow
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
NEW
People
(Reporter: dbaron, Unassigned)
Details
(Keywords: perf, Whiteboard: [patch])
Attachments
(1 file)
659 bytes,
patch
|
bryner
:
review+
|
Details | Diff | Splinter Review |
While profiling bug 5693, I discovered that mousing over menus causes a reflow.
I first found the style rule that was guilty, and fixed it, and it's *still*
causing a reflow. So then I discovered that nsBoxFrame::AttributeChanged
unconditionally does a MarkDirty (at the end of the function). In this case the
attribute is _moz_menuactive. So this means that any time an attribute changes
on a XUL element, we reflow. At least that's what it seems like to me, and
looks like in my profile.
I'll attach the modern skin CSS patch, but it seems (based on my profile) like
menu mouseover performance could be about 50% better if we didn't reflow. (And
this is with the patch for bug 5693.)
FWIW, I was testing by moving the mouse pointer up and down over my bookmarks menu.
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
This unconditional MarkDirty was added in:
revision 1.171
date: 2001/12/03 23:41:08; author: evaughan%netscape.com; state: Exp; lines:
+48 -15
Facelift for nsBoxToBlockAdaptor -r hyatt -sr waterson #110328
Grid memory leak -r naving -sr hewitt #109490
jag moved it accidentially while checking in bug 959, and then moved it back
soon thereafter to fix assertions at startup.
Reporter | ||
Comment 3•23 years ago
|
||
See bug 110328 comment 3 and bug 110328 comment 4.
Reporter | ||
Comment 4•23 years ago
|
||
See also bug 113528, a similar problem, it seems.
Comment 5•23 years ago
|
||
Comment on attachment 78294 [details] [diff] [review]
CSS patch (modern) to prevent style system from generating any reflows
r=bryner
Attachment #78294 -
Flags: review+
Reporter | ||
Comment 6•23 years ago
|
||
I think that patch wasn't the main problem anyway -- I think that's just the
buttons at the end of the menus. Then again, the fact that they resize on
:hover is annoying...
Updated•23 years ago
|
Updated•23 years ago
|
Keywords: mozilla1.1
Comment 7•23 years ago
|
||
I see this at http://home.olemiss.edu/~jhknight/ (links on left) in 2002071004.
Is it the same bug?
Reporter | ||
Comment 8•23 years ago
|
||
No, this is a bug about *menus*, not some HTML simulation thereof.
Reporter | ||
Updated•21 years ago
|
Assignee: hyatt → dbaron
Whiteboard: [patch]
Comment 9•21 years ago
|
||
Do we still reflow?
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
Comment 10•16 years ago
|
||
dbaron, was this FIXED by the Reflow Branch by chance?
Comment 11•13 years ago
|
||
From glancing at the nsBoxFrame::AttributeChanged, it appears to be much more careful now about triggering FrameNeedsReflow(), so this is probably fixed/irrelevant
Reporter | ||
Updated•4 years ago
|
Assignee: dbaron → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•