Closed Bug 333178 Opened 18 years ago Closed 18 years ago

fix image cursors for cairo-gtk2 builds

Categories

(Core :: Graphics, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: Biesinger, Assigned: Biesinger)

References

()

Details

Attachments

(1 file, 2 obsolete files)

Image cursors are broken because nsThebesImage doesn't implement nsIGdkPixbufImage.
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → cbiesinger
Status: NEW → ASSIGNED
Attachment #217623 - Flags: review?(pavlov)
Target Milestone: --- → mozilla1.9alpha
Comment on attachment 217623 [details] [diff] [review]
patch

i'd really rather not take this patch.  we want to remove our deps on nsIImage and the rest of the GFX APIs as much as possible.  Can this code live somewhere else?
Yes, the fix for this needs to happen in widget code, not in gfx; same for that WriteImage stuff.
Attachment #217623 - Flags: review?(pavlov) → review-
Attached patch patch v2 (obsolete) — Splinter Review
maybe like this then?
Attachment #217623 - Attachment is obsolete: true
Attachment #217690 - Flags: review?(bryner)
Comment on attachment 217690 [details] [diff] [review]
patch v2

Looks ok... the comments about nsIGdkPixbufImage will be confusing when that interface goes away though.
Attachment #217690 - Flags: review?(bryner) → review+
oops, I forgot about this patch...
Attachment #217690 - Attachment is obsolete: true
Attachment #225657 - Flags: superreview?(roc)
Why don't you just create a GdkPixbuf, wrap it in a gfxContext, and draw the image into that?
Cairo does not support the pixel format of GdkPixbuf. GdkPixbuf wants non-premultiplied RGBA (big-endian byte order).
sorry, I confused GdkPixbuf with GdkPixmap.
Attachment #225657 - Flags: superreview?(roc) → superreview+
Checking in browser/components/shell/src/nsGNOMEShellService.cpp;
/cvsroot/mozilla/browser/components/shell/src/nsGNOMEShellService.cpp,v  <--  nsGNOMEShellService.cpp
new revision: 1.13; previous revision: 1.12
done
Checking in widget/src/gtk2/Makefile.in;
/cvsroot/mozilla/widget/src/gtk2/Makefile.in,v  <--  Makefile.in
new revision: 1.53; previous revision: 1.52
done
RCS file: /cvsroot/mozilla/widget/src/gtk2/nsIImageToPixbuf.h,v
done
Checking in widget/src/gtk2/nsIImageToPixbuf.h;
/cvsroot/mozilla/widget/src/gtk2/nsIImageToPixbuf.h,v  <--  nsIImageToPixbuf.h
initial revision: 1.1
done
RCS file: /cvsroot/mozilla/widget/src/gtk2/nsImageToPixbuf.cpp,v
done
Checking in widget/src/gtk2/nsImageToPixbuf.cpp;
/cvsroot/mozilla/widget/src/gtk2/nsImageToPixbuf.cpp,v  <--  nsImageToPixbuf.cpp
initial revision: 1.1
done
RCS file: /cvsroot/mozilla/widget/src/gtk2/nsImageToPixbuf.h,v
done
Checking in widget/src/gtk2/nsImageToPixbuf.h;
/cvsroot/mozilla/widget/src/gtk2/nsImageToPixbuf.h,v  <--  nsImageToPixbuf.h
initial revision: 1.1
done
Checking in widget/src/gtk2/nsWidgetFactory.cpp;
/cvsroot/mozilla/widget/src/gtk2/nsWidgetFactory.cpp,v  <--  nsWidgetFactory.cpp
new revision: 1.36; previous revision: 1.35
done
Checking in widget/src/gtk2/nsWindow.cpp;
/cvsroot/mozilla/widget/src/gtk2/nsWindow.cpp,v  <--  nsWindow.cpp
new revision: 1.173; previous revision: 1.172
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: