Closed Bug 376245 Opened 18 years ago Closed 18 years ago

Drag image with custom image doesn't work any more

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: enndeakin, Assigned: enndeakin)

References

Details

Attachments

(3 files)

Attached file testcase, needs chrome privileges (deleted) —
###!!! ASSERTION: DrawImage should no longer be called with thebes: 'Not Reached', file /builds/trunk-dragimage/mozilla/gfx/src/thebes/nsThebesRenderingContext.cpp, line 940 This was caused by bug 371434, which removed nsIRenderingContext::DrawImage What should be called instead, nsIImage::Draw or nsLayoutUtils::DrawImage?
Blocks: 371434
No longer depends on: 371434
Probably nsLayoutUtils::DrawImage, at least if the caller is in layout. Although, really, whichever one is easier.
Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Attachment #260471 - Flags: superreview?(roc)
Attachment #260471 - Flags: review?(roc)
Attachment #260471 - Flags: superreview?(roc)
Attachment #260471 - Flags: superreview+
Attachment #260471 - Flags: review?(roc)
Attachment #260471 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
(In reply to comment #2) > Created an attachment (id=260471) [details] > use nsIImage::Draw to draw the image instead > I think this patch is wrong. The second block converts dev pixels to app units (using ScaleRoundOut) then converts these (without scaling) to gfxFloats (which are dev pixels), then draws... The conversion to app units should be skipped? Unless the interface for img->Draw is screwed up and it's taking floating point app units... Regards, -Jeremy
Attachment #260690 - Flags: superreview?(roc)
Attachment #260690 - Flags: review?(roc)
Attachment #260690 - Flags: superreview?(roc)
Attachment #260690 - Flags: superreview+
Attachment #260690 - Flags: review?(roc)
Attachment #260690 - Flags: review+
Flags: in-testsuite-
Flags: in-litmus?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: