Closed
Bug 453542
Opened 18 years ago
Closed 17 years ago
Use a faster strategy for unified toolbar drawing
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mstange, Unassigned)
Details
Drawing a window's titlebar and toolbar works like this:
- The titlebar is drawn by the window's background texture which applies to
the whole window.
- The toolbar is drawn by nsNativeThemeCocoa::DrawUnifiedToolbar into the
content view.
It would be more efficient to make the content view and the toolbar transparent and to draw both the titlebar and the toolbar gradient in the window's background texture.
Then we wouldn't even have to set a custom window background color on Leopard.
| Reporter | ||
Updated•17 years ago
|
Assignee: mstange → nobody
Status: ASSIGNED → NEW
| Reporter | ||
Comment 1•17 years ago
|
||
This won't work. We only know the height of the toolbar when we're painting it, at which point the window background has already been painted. So when we're painting the toolbar and noticed that its height has changed, we would need to paint the window background again, and since the toolbar sits on top of it, also the toolbar... there's no gain there.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•