mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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,8 +5,7 @@
|
|||
use dom::bindings::codegen::Bindings::MouseEventBinding;
|
||||
use dom::bindings::codegen::Bindings::MouseEventBinding::MouseEventMethods;
|
||||
use dom::bindings::codegen::Bindings::UIEventBinding::UIEventMethods;
|
||||
use dom::bindings::codegen::InheritTypes::{EventCast, EventTypeId, UIEventCast};
|
||||
use dom::bindings::codegen::InheritTypes::{UIEventTypeId, MouseEventDerived};
|
||||
use dom::bindings::codegen::InheritTypes::{EventCast, UIEventCast};
|
||||
use dom::bindings::error::Fallible;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::js::{JS, MutNullableHeap, Root, RootedReference};
|
||||
|
@ -35,12 +34,6 @@ pub struct MouseEvent {
|
|||
related_target: MutNullableHeap<JS<EventTarget>>,
|
||||
}
|
||||
|
||||
impl MouseEventDerived for Event {
|
||||
fn is_mouseevent(&self) -> bool {
|
||||
*self.type_id() == EventTypeId::UIEvent(UIEventTypeId::MouseEvent)
|
||||
}
|
||||
}
|
||||
|
||||
impl MouseEvent {
|
||||
fn new_inherited() -> MouseEvent {
|
||||
MouseEvent {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue