mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
replace InheritTypes imports with inheritance imports
This commit is contained in:
parent
34b71e55f5
commit
9fd823e449
15 changed files with 22 additions and 22 deletions
|
@ -81,7 +81,7 @@
|
|||
//! on the `Node` interface to avoid unnecessary upcasts to `EventTarget`.
|
||||
//!
|
||||
//! ```ignore
|
||||
//! use dom::bindings::codegen::InheritTypes::{EventTargetTypeId, NodeTypeId};
|
||||
//! use dom::bindings::inheritance::{EventTargetTypeId, NodeTypeId};
|
||||
//!
|
||||
//! match *node.type_id() {
|
||||
//! EventTargetTypeId::Node(NodeTypeId::CharacterData(_)) => ...,
|
||||
|
@ -160,11 +160,11 @@
|
|||
//! =======================
|
||||
//!
|
||||
//! For all DOM interfaces `Foo` in an inheritance chain, a
|
||||
//! `dom::bindings::codegen::InheritTypes::FooCast` provides methods to cast
|
||||
//! `dom::bindings::inheritance::FooCast` provides methods to cast
|
||||
//! to other types in the inheritance chain. For example:
|
||||
//!
|
||||
//! ```ignore
|
||||
//! # use script::dom::bindings::codegen::InheritTypes::{NodeCast, HTMLElementCast};
|
||||
//! # use script::dom::bindings::inheritance::{NodeCast, HTMLElementCast};
|
||||
//! # use script::dom::element::Element;
|
||||
//! # use script::dom::node::Node;
|
||||
//! # use script::dom::htmlelement::HTMLElement;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue