Closed
Bug 980436
Opened 10 years ago
Closed 10 years ago
Fix widget/windows/nsDragService.cpp's use of DataSourceSurface::Map() the Moz2D conversion
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
Attachments
(1 file)
4.31 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
Bug 962786 left widget/windows/nsDragService.cpp in a bit of a weird state. It Map()'s a DataSourceSurface without actually using the map, and fails to call Unmap() at multiple return points. It also seems to still be using a gfxImageSurface to do the drawing.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8387194 -
Flags: review?(matt.woodrow)
Assignee | ||
Comment 2•10 years ago
|
||
The code for CopyPixelDataToPackedArray is in bug 980547.
Comment 3•10 years ago
|
||
Comment on attachment 8387194 [details] [diff] [review] patch Review of attachment 8387194 [details] [diff] [review]: ----------------------------------------------------------------- ::: widget/windows/nsDragService.cpp @@ +112,5 @@ > + dataSurface->GetSize(), > + map.mStride, > + dataSurface->GetFromat()); > + if (!dt) { > + dataSurface->Unmap(); FWIW, I am hugely for a RAII class to prevent needing to do this :)
Attachment #8387194 -
Flags: review?(matt.woodrow) → review+
Assignee | ||
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c6cec6e8dbac
Comment 5•10 years ago
|
||
Push backed out for crashes: https://tbpl.mozilla.org/?tree=Mozilla-Inbound&rev=a2b62ced704d remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/0ee66295c251 remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/360307f9ee38
Comment 6•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4528bce55006
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in
before you can comment on or make changes to this bug.
Description
•