mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Remove View type parameter from DocumentType
This commit is contained in:
parent
a3d3337aed
commit
189bb6c95f
5 changed files with 11 additions and 12 deletions
|
@ -273,14 +273,14 @@ impl<'self, View> AbstractNode<View> {
|
|||
self.type_id() == DoctypeNodeTypeId
|
||||
}
|
||||
|
||||
pub fn with_imm_doctype<R>(self, f: &fn(&DocumentType<View>) -> R) -> R {
|
||||
pub fn with_imm_doctype<R>(self, f: &fn(&DocumentType) -> R) -> R {
|
||||
if !self.is_doctype() {
|
||||
fail!(~"node is not doctype");
|
||||
}
|
||||
self.transmute(f)
|
||||
}
|
||||
|
||||
pub fn with_mut_doctype<R>(self, f: &fn(&mut DocumentType<View>) -> R) -> R {
|
||||
pub fn with_mut_doctype<R>(self, f: &fn(&mut DocumentType) -> R) -> R {
|
||||
if !self.is_doctype() {
|
||||
fail!(~"node is not doctype");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue