mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Generate all Derived implementations in codegen
This commit is contained in:
parent
32daa17d5c
commit
617fc08783
93 changed files with 137 additions and 1027 deletions
|
@ -5,7 +5,7 @@
|
|||
use dom::bindings::codegen::Bindings::CustomEventBinding;
|
||||
use dom::bindings::codegen::Bindings::CustomEventBinding::CustomEventMethods;
|
||||
use dom::bindings::codegen::Bindings::EventBinding::EventMethods;
|
||||
use dom::bindings::codegen::InheritTypes::{CustomEventDerived, EventCast, EventTypeId};
|
||||
use dom::bindings::codegen::InheritTypes::EventCast;
|
||||
use dom::bindings::error::Fallible;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::js::{MutHeapJSVal, Root};
|
||||
|
@ -23,12 +23,6 @@ pub struct CustomEvent {
|
|||
detail: MutHeapJSVal,
|
||||
}
|
||||
|
||||
impl CustomEventDerived for Event {
|
||||
fn is_customevent(&self) -> bool {
|
||||
*self.type_id() == EventTypeId::CustomEvent
|
||||
}
|
||||
}
|
||||
|
||||
impl CustomEvent {
|
||||
fn new_inherited() -> CustomEvent {
|
||||
CustomEvent {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue