Closed
Bug 549415
Opened 16 years ago
Closed 15 years ago
Remove GetNativeGraphicData()
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jrmuizel, Unassigned)
References
Details
(Whiteboard: [good first bug])
There are only four callers.
1. nsNativeThemeWin.cpp which will perhaps be dealt with in bug 549110
2. nsVideoFrame.cpp which will go away after bug 549331
3-4. two other users in nsObjectFrame.cpp used only on OS/2 for printing plugins.
Peter can you get rid of the OS/2 users?
| Reporter | ||
Updated•16 years ago
|
Comment 1•16 years ago
|
||
From what I remember plugin printing never worked in the past year(s), so removing the OS/2 stuff should be simple.
Hmm, wait, one use is in nsObjectFrame::PaintPlugin(). Removing that might be some work. I'm not really up to date: what's the replacement to get native objects?
| Reporter | ||
Comment 2•16 years ago
|
||
(In reply to comment #1)
> Hmm, wait, one use is in nsObjectFrame::PaintPlugin(). Removing that might be
> some work. I'm not really up to date: what's the replacement to get native
> objects?
All of the other platforms have gfxWindowsNativeDrawing type class. So you should create a gfxOS2NativeDrawing class and use that.
Caller (1) in comment 0 died in bug 585817.
Whiteboard: [good first bug]
Comment 5•16 years ago
|
||
So, by now only the OS/2 use holds this up.
I looked at this briefly in March but without quick success and no time since then. Rich, any chance you can do this?
Hmm, should not a simple
HPS hps = static_cast<gfxOS2Surface*>(static_cast<gfxASurface*>(surf.get()))
->GetPS();
work instead of the call to GetNativeGraphicData()? That's the only thing that that function does for us that's not already in the code in nsObjectFrame::PaintPlugin(). (I cannot build/test on OS/2 at the moment.)
Comment 6•15 years ago
|
||
I could not find any reference of GetNativeGraphicData() in nsObjectFrame.cpp file. Am I missing something or is this bug already resolved?
Comment 7•15 years ago
|
||
MXR shows no results for getnativegraphicdata.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•