Closed Bug 908837 Opened 11 years ago Closed 11 years ago

Include a bit less stuff in binding implementation files

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We can drop nsContentUtils and lots of binding headers we aren't actually using: we only need binding headers for some of our ancestor interfaces, not for all interfaces we have as args or whatnot.
Comment on attachment 794822 [details] [diff] [review] Include a bit less stuff in binding implementation files. > for iface in interfaceDeps: >- while iface.parent: >+ if iface.parent: >+ # We're going to need its prototype > ancestors.append(iface.parent) >- iface = iface.parent >+ # And if we have an interface object, we'll need the >+ # nearest ancestor with an interface object too. please explain why >+ if iface.hasInterfaceObject(): Shouldn't this be if iface.hasInterfaceObject() and not iface.parent.hasInterfaceObject(): r+ assuming this compiles :)
Attachment #794822 - Flags: review?(bugs) → review+
> Shouldn't this be > if iface.hasInterfaceObject() and not iface.parent.hasInterfaceObject(): Doesn't matter, since we're just adding to a set, so adding iface.parent twice isn't going to hurt anything.
Flags: in-testsuite-
Target Milestone: --- → mozilla26
Status: NEW → RESOLVED
Closed: 11 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: