Closed Bug 777438 Opened 12 years ago Closed 12 years ago

Handle dictionary members of dictionaries when doing dictionary reordering

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Otherwise we can end up with the class declared before its members, and all is bad.
Whiteboard: [need review]
Comment on attachment 645830 [details] [diff] [review]
Make sure our C++ declarations are in the right order when a dictionary has a dictionary member.

Review of attachment 645830 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/bindings/Codegen.py
@@ +4041,5 @@
>      def __init__(self, dictionary, descriptorProvider):
>          self.dictionary = dictionary;
>          self.workers = descriptorProvider.workers
> +        if all(CGDictionary(d, descriptorProvider).generatable for
> +               d in self.getDictionaryDependencies(dictionary)):

Don't invoke static methods as self.getDictionaryDependencies().  Either make it non-static or invoke it as CGDictionary.getDictionaryDependencies.
Attachment #645830 - Flags: review?(khuey) → review+
Fixed that, and http://hg.mozilla.org/integration/mozilla-inbound/rev/1571f03f3821
Flags: in-testsuite+
Whiteboard: [need review]
Target Milestone: --- → mozilla17
https://hg.mozilla.org/mozilla-central/rev/1571f03f3821
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
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: