mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
auto merge of #4173 : Manishearth/servo/a-more-dom-struct, r=kmcallister
Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector. A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
This commit is contained in:
commit
56d1b16d1b
131 changed files with 289 additions and 794 deletions
|
@ -12,7 +12,7 @@ use dom::bindings::js::{JSRef, Temporary, MutHeap};
|
|||
use js::jsapi::JSContext;
|
||||
use dom::bindings::trace::JSTraceable;
|
||||
|
||||
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
|
||||
use dom::bindings::utils::reflect_dom_object;
|
||||
use dom::event::{Event, EventTypeId, EventBubbles, EventCancelable};
|
||||
use servo_util::str::DOMString;
|
||||
|
||||
|
@ -127,9 +127,3 @@ impl<'a> ErrorEventMethods for JSRef<'a, ErrorEvent> {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
impl Reflectable for ErrorEvent {
|
||||
fn reflector<'a>(&'a self) -> &'a Reflector {
|
||||
self.event.reflector()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue