servo/components/script
Anthony Ramine a6d59d8714 Replace inheritance_integrity by trait shenanigans
For each derived DomObject impl, we also generate a dummy trait
ShouldNotImplDomObject that is implemented for all T: DomObject.
We then try to implement it for each field type except the first one.
If compilation succeed, this means that field type doesn't implement
DomObject itself otherwise it would break coherence rules.

error[E0119]: conflicting implementations of trait `dom::xmlhttprequest::_IMPL_DOMOBJECT_FOR_XMLHttpRequest::ShouldNotImplDomObject` for type `((), SomeFieldTypeThatShouldNotImplementDomObject)`:
   --> /Users/nox/src/servo/components/script/dom/xmlhttprequest.rs:120:1
    |
120 | #[dom_struct]
    | ^^^^^^^^^^^^^
    | |
    | first implementation here
    | conflicting implementation for `((), SomeFieldTypeThatShouldNotImplementDomObject)`
2017-02-15 22:11:20 +01:00
..
docs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
dom Replace inheritance_integrity by trait shenanigans 2017-02-15 22:11:20 +01:00
task_source Properly implement TaskSource for NetworkingTaskSource 2016-11-11 14:50:42 -08:00
body.rs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
build.rs Fix hardcoded path to link.exe 2017-02-03 13:33:37 +01:00
Cargo.toml Update cssparser to 0.9 2017-02-15 12:42:14 +01:00
clipboard_provider.rs
CMakeLists.txt
devtools.rs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
document_loader.rs Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00
fetch.rs Don't lose information in Fetch API 2017-01-09 14:52:14 +01:00
layout_wrapper.rs Clean up and simplify the accumulation of restyle damage. 2017-02-10 10:34:28 -08:00
lib.rs Change #[privatize] into #[derive(DenyPublicFields)] 2017-02-15 10:24:01 +01:00
mem.rs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
microtask.rs Generalize promise job queue into solitary microtask queue. 2017-02-01 12:54:33 -05:00
network_listener.rs Separate the async bluetooth handling from networking code. 2016-12-21 14:52:39 +01:00
origin.rs Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00
script_runtime.rs Generalize promise job queue into solitary microtask queue. 2017-02-01 12:54:33 -05:00
script_thread.rs Remove usage of unwrap in handle_exit_pipeline_msg() 2017-02-13 15:55:37 +05:30
serviceworker_manager.rs Removed util. 2016-12-14 18:04:37 -06:00
serviceworkerjob.rs Remove incorrect uses of asynchronous tasks from ServiceWorker job queue. 2017-02-01 12:54:33 -05:00
stylesheet_loader.rs fix issue #15101 and make sure out-of-order stylesheet loads work correctly for the same element 2017-01-24 15:52:01 +01:00
test.rs Added compiletest to verify TrustedPromise does not implement Clone 2017-01-22 20:12:07 +00:00
textinput.rs Return KeyReaction::Nothing for a Tab event 2016-11-12 15:49:00 +01:00
timers.rs Change #[privatize] into #[derive(DenyPublicFields)] 2017-02-15 10:24:01 +01:00
unpremultiplytable.rs
webdriver_handlers.rs Refactor and simplify 'set cookies' operations on resource thread. 2016-12-15 15:34:04 -05:00