Closed
Bug 385888
Opened 17 years ago
Closed 17 years ago
Removal of non-Cairo code from nsWindow.cpp
Categories
(Core :: Graphics, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: alfredkayser, Assigned: alfredkayser)
References
Details
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
roc
:
superreview+
pavlov
:
approval1.9+
|
Details | Diff | Splinter Review |
The non-Cairo code in nsWindow.cpp is outdated and should be removed. Note, that for example image decoders also don't have non-cairo support anymore.
Attachment #269820 -
Flags: review?(emaijala)
Assignee | ||
Comment 1•17 years ago
|
||
Attachment #269885 -
Flags: review?(emaijala)
Assignee | ||
Comment 2•17 years ago
|
||
In windows/nsWindow.cpp there are three local/static functions that are only referred by the non-Cairo code, and can therefor also be removed.
So, now this not just clean source code, but also reduces compiled code size (about ± 1.5K).
Attachment #269820 -
Attachment is obsolete: true
Attachment #269885 -
Attachment is obsolete: true
Attachment #269887 -
Flags: review?(emaijala)
Attachment #269820 -
Flags: review?(emaijala)
Attachment #269885 -
Flags: review?(emaijala)
Comment 3•17 years ago
|
||
Comment on attachment 269887 [details] [diff] [review]
V2: Do windows and OS/2 and remove now redundant static functions
Couldn't you just remove UpdateTranslucentWindowAlphaInner (and the call to it in UpdateTranslucentWindowAlpha)?
r=me for the Windows part, OS/2 is out of my scope (it's been like 8 years since I've used it...).
Attachment #269887 -
Flags: review?(emaijala) → review+
Comment 4•17 years ago
|
||
(In reply to comment #3)
> r=me for the Windows part, OS/2 is out of my scope (it's been like 8 years
> since I've used it...).
>
Just FYI, there is bug 389729 filed that would also cover the OS/2 files in this attachment. This bug is about removal of non-Cairo code from all OS/2 files. So, maybe here you should take care only of the windows files or communicate changes in OS/2 files to bug 389729.
Comment 5•17 years ago
|
||
Bug 389729 contains the exact same changes to OS/2's nsWindow. Please get this one in without the OS/2 bits.
Assignee | ||
Comment 6•17 years ago
|
||
I'll remove the OS/2 bits soon and upload a new patch.
Status: NEW → ASSIGNED
Assignee | ||
Comment 7•17 years ago
|
||
dbaron, third part of the set of non-Cairo removal.
Attachment #269887 -
Attachment is obsolete: true
Attachment #275575 -
Flags: superreview?
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → alfredkayser
Status: ASSIGNED → NEW
Assignee | ||
Updated•17 years ago
|
Attachment #275575 -
Flags: superreview? → superreview?(dbaron)
Comment 8•17 years ago
|
||
roc would be a better reviewer for this; you might want to ask biesi about the cursor parts. It's not clear to me whether this is code that should work with cairo but hasn't been made to work with it yet, or whether it's really code we don't want anymore.
Assignee | ||
Comment 9•17 years ago
|
||
Comment on attachment 275575 [details] [diff] [review]
V3: Update to trunk, and only do the Windows part
This code al does work in Cairo. It just that the non-Cairo code is no longer needed, and some functions (Data8BitTo1Bit, DataToAData, and CreateOpaqueAlphaChannel) are no longer needed in the Cairo version.
Attachment #275575 -
Flags: superreview?(dbaron) → superreview?(roc)
Comment 10•17 years ago
|
||
yeah, those functions can be removed now.
Attachment #275575 -
Flags: superreview?(roc) → superreview+
Assignee | ||
Comment 11•17 years ago
|
||
Who can do the checkin?
Thanks in advance!
Keywords: checkin-needed
Comment 12•17 years ago
|
||
Per the top of the tinderbox and http://groups.google.com/group/mozilla.dev.planning/browse_thread/thread/f569a23ce266a451/265344ae5291dee0 your patch needs approval1.9+ before anyone can do the checkin.
Keywords: checkin-needed
Assignee | ||
Updated•17 years ago
|
Attachment #275575 -
Flags: approval1.9?
Updated•17 years ago
|
Attachment #275575 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 13•17 years ago
|
||
Who can do the checkin for me, now that approval1.9+ has been given?
Thanks in advance!
Keywords: checkin-needed
Comment 15•17 years ago
|
||
Checked into trunk.
You need to log in
before you can comment on or make changes to this bug.
Description
•