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
|
@ -6,7 +6,7 @@ use dom::bindings::codegen::Bindings::EventBinding::EventMethods;
|
|||
use dom::bindings::codegen::Bindings::WebGLContextEventBinding;
|
||||
use dom::bindings::codegen::Bindings::WebGLContextEventBinding::WebGLContextEventInit;
|
||||
use dom::bindings::codegen::Bindings::WebGLContextEventBinding::WebGLContextEventMethods;
|
||||
use dom::bindings::codegen::InheritTypes::{EventCast, EventTypeId, WebGLContextEventDerived};
|
||||
use dom::bindings::codegen::InheritTypes::EventCast;
|
||||
use dom::bindings::error::Fallible;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::js::{Root, RootedReference};
|
||||
|
@ -27,12 +27,6 @@ impl WebGLContextEventMethods for WebGLContextEvent {
|
|||
}
|
||||
}
|
||||
|
||||
impl WebGLContextEventDerived for Event {
|
||||
fn is_webglcontextevent(&self) -> bool {
|
||||
*self.type_id() == EventTypeId::WebGLContextEvent
|
||||
}
|
||||
}
|
||||
|
||||
impl WebGLContextEvent {
|
||||
pub fn new_inherited(status_message: DOMString) -> WebGLContextEvent {
|
||||
WebGLContextEvent {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue