mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -4,14 +4,12 @@
|
|||
|
||||
use dom::bindings::codegen::Bindings::CommentBinding;
|
||||
use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods;
|
||||
use dom::bindings::codegen::InheritTypes::{CharacterDataTypeId, CommentDerived};
|
||||
use dom::bindings::codegen::InheritTypes::{EventTargetTypeId, NodeTypeId};
|
||||
use dom::bindings::codegen::InheritTypes::CharacterDataTypeId;
|
||||
use dom::bindings::error::Fallible;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::js::Root;
|
||||
use dom::characterdata::CharacterData;
|
||||
use dom::document::Document;
|
||||
use dom::eventtarget::EventTarget;
|
||||
use dom::node::Node;
|
||||
use util::str::DOMString;
|
||||
|
||||
|
@ -21,12 +19,6 @@ pub struct Comment {
|
|||
characterdata: CharacterData,
|
||||
}
|
||||
|
||||
impl CommentDerived for EventTarget {
|
||||
fn is_comment(&self) -> bool {
|
||||
*self.type_id() == EventTargetTypeId::Node(NodeTypeId::CharacterData(CharacterDataTypeId::Comment))
|
||||
}
|
||||
}
|
||||
|
||||
impl Comment {
|
||||
fn new_inherited(text: DOMString, document: &Document) -> Comment {
|
||||
Comment {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue