Closed
Bug 453541
Opened 16 years ago
Closed 15 years ago
Unnecessary second repaint when changing window focus
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a1
People
(Reporter: mstange, Assigned: mstange)
References
Details
(Keywords: perf)
Since bug 406730 the theme can set CSS styles based on a window's main state. However, these restyles are processed too late. When focusing / unfocusing a window, they cause a second invalidation of the window which is unnecessary. See bug 432131 comment 22 for all the details. You can watch the repaint using QuartzDebug. It would be good to avoid this invalidation. Maybe we can send a notification from widget to Gecko that says "Please flush all restyles now"?
Assignee | ||
Comment 1•15 years ago
|
||
This is easy. We can just call FlushPendingNotifications(Flush_Display) on the PresShell after we set the attribute. I'll do that after bug 508482.
Assignee | ||
Comment 2•15 years ago
|
||
Or we can move the flushing to viewWillDraw.
Assignee | ||
Comment 3•15 years ago
|
||
... which I'm doing in bug 517804.
Assignee | ||
Comment 4•15 years ago
|
||
Fixed by bug 517804.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Assignee | ||
Comment 5•15 years ago
|
||
Reopened by backout of bug 517804.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 6•15 years ago
|
||
Fixed by relanding of bug 517804.
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•