Closed Bug 801712 Opened 12 years ago Closed 12 years ago

Convert ImageData to WebIDL

Categories

(Core :: Graphics: Canvas2D, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(3 files, 1 obsolete file)

No description provided.
Blocks: 746773
Attachment #671490 - Flags: review?(peterv)
Comment on attachment 671490 [details] [diff] [review] part 2. Switch ImageData to WebIDL bindings. Review of attachment 671490 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/xpconnect/src/dom_quickstubs.qsconf @@ -963,5 @@ > 'unwrapThisFailureFatal' : False > - }, > - 'nsIDOMImageData_GetWidth': { > - 'thisType': 'nsIDOMImageData', > - 'code': 'uint32_t result = static_cast<mozilla::dom::ImageData*>(self)->GetWidth();', This code is busted between part 1 and 2?
> This code is busted between part 1 and 2? Er, yes. I'll add a bit to part 1 to fix that.
Attachment #671490 - Attachment is obsolete: true
Attachment #671490 - Flags: review?(peterv)
Attachment #671639 - Attachment description: With the imagedata classinfo really gone → Part 2 with the imagedata classinfo really gone
Note to self: this causes a single test failure due to bug 742191 because unwrapping WebIDL objects don't throw a TypeError yet.
Depends on: 742191
Attachment #671489 - Flags: review?(peterv) → review+
Comment on attachment 671639 [details] [diff] [review] Part 2 with the imagedata classinfo really gone Review of attachment 671639 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/base/nsJSEnvironment.cpp @@ +3838,5 @@ > + > + // Write the internals to the stream. > + return JS_WriteUint32Pair(writer, SCTAG_DOM_IMAGEDATA, 0) && > + JS_WriteUint32Pair(writer, width, height) && > + JS_WriteTypedArray(writer, dataArray); Keep the JS_* lined up.
Attachment #671639 - Flags: review?(peterv) → review+
Attachment #671491 - Flags: review?(peterv) → review+
Depends on: 825025
Depends on: 825288
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: