servo/components/script/dom/bindings
bors-servo e977a6e69a Auto merge of #8954 - nox:protochain, r=Ms2ger
Fix prototypes of interface objects (fixes #2665)

Callback interface objects' (i.e. NodeFilter's) prototype is now Object instead of
Function and non-callback interface objects' their proper ancestor, starting with
the Function prototype.

The function do_create_interface_objects is removed in favour of 4 functions:
create_callback_interface_object, create_interface_prototype_object,
create_noncallback_interface_object and create_named_constructors.

While this increases the amount of codegen'd code, this greatly improves the
readability of the code involved in this part of DOM, instead of having one function
doing 4 different things. We can always find a more adequate abstraction later.

NativeProperties and everything related to the interface objects have been removed
from the utils module.

Fixes #2665.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8954)
<!-- Reviewable:end -->
2016-01-12 22:00:47 +05:30
..
codegen Fix prototypes of interface objects (fixes #2665) 2016-01-12 17:15:44 +01:00
callback.rs Remove #[allow(raw_pointer_derive)] attributes 2015-11-27 14:32:57 -05:00
cell.rs task -> thread 2016-01-10 17:58:13 +09:00
conversions.rs Use features to prevent the util component from entraining the world in GeckoLib builds. 2016-01-11 19:38:43 -08:00
error.rs Use throw_type_error and throw_range_error from js. 2015-11-12 10:20:19 +01:00
global.rs Remove unused enum GlobalField 2016-01-10 22:46:38 -05:00
inheritance.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
interface.rs Fix prototypes of interface objects (fixes #2665) 2016-01-12 17:15:44 +01:00
js.rs task -> thread 2016-01-10 17:58:13 +09:00
mod.rs Refactor prototype initialisation 2016-01-12 12:34:18 +01:00
num.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
proxyhandler.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
refcounted.rs task -> thread 2016-01-10 17:58:13 +09:00
reflector.rs Add global default method for Reflectable trait 2016-01-11 20:23:47 -05:00
str.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
structuredclone.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
trace.rs Final steps 2016-01-11 18:48:54 +05:30
utils.rs Fix prototypes of interface objects (fixes #2665) 2016-01-12 17:15:44 +01:00
weakref.rs Properly propagate changes when range or trees are mutated 2015-12-25 23:35:57 +01:00
xmlname.rs Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00