mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Auto merge of #8020 - nox:codegen-derived, r=Ms2ger
Generate all Derived implementations in codegen Follow-up of #7873. @Ms2ger r? :) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8020) <!-- Reviewable:end -->
This commit is contained in:
commit
417cf5738e
94 changed files with 230 additions and 1178 deletions
|
@ -6,7 +6,7 @@ use dom::bindings::cell::DOMRefCell;
|
|||
use dom::bindings::codegen::Bindings::ErrorEventBinding;
|
||||
use dom::bindings::codegen::Bindings::ErrorEventBinding::ErrorEventMethods;
|
||||
use dom::bindings::codegen::Bindings::EventBinding::EventMethods;
|
||||
use dom::bindings::codegen::InheritTypes::{ErrorEventDerived, EventCast, EventTypeId};
|
||||
use dom::bindings::codegen::InheritTypes::EventCast;
|
||||
use dom::bindings::error::Fallible;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::js::{MutHeapJSVal, Root};
|
||||
|
@ -30,12 +30,6 @@ pub struct ErrorEvent {
|
|||
error: MutHeapJSVal,
|
||||
}
|
||||
|
||||
impl ErrorEventDerived for Event {
|
||||
fn is_errorevent(&self) -> bool {
|
||||
*self.type_id() == EventTypeId::ErrorEvent
|
||||
}
|
||||
}
|
||||
|
||||
impl ErrorEvent {
|
||||
fn new_inherited() -> ErrorEvent {
|
||||
ErrorEvent {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue