Closed Bug 928953 Opened 11 years ago Closed 11 years ago

WebIDL headers should include the file for enums

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: dzbarsky, Assigned: dzbarsky)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch webidl-patch (obsolete) — Splinter Review
And a typo fix along the way. Although clearly that branch was never being hit, so maybe we don't actually need it?
Assignee: nobody → dzbarsky
Attachment #819750 - Attachment is patch: true
Attachment #819750 - Attachment mime type: text/x-patch → text/plain
Attachment #819750 - Flags: review?(bzbarsky)
We need this to handle the following WebIDL (because OwningSpacingModeOrDouble needs to call sizeof on SpacingMode): enum SpacingMode { "distribute", "align" }; typedef (SpacingMode or double) EasingTimesInput; interface Timing { ... EasingTimesInput getEasingTimes(); };
Comment on attachment 819750 [details] [diff] [review] webidl-patch UnionTypes.h shouldn't need PrimitiveConversions.h, yeah. Just nuke that branch. Testing for IDLWrapperType is over-eager, I think... It'll over-include for interfaces, I think. Why not just test for f.isEnum() if that's what we want?
Attachment #819750 - Flags: review?(bzbarsky) → review-
Attached patch patchSplinter Review
Yeah, f.isEnum() is enough.
Attachment #819750 - Attachment is obsolete: true
Attachment #8350452 - Flags: review?(bzbarsky)
Comment on attachment 8350452 [details] [diff] [review] patch I swear someone else ran into this a few days ago... Anyway, r=me
Attachment #8350452 - Flags: review?(bzbarsky) → review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: