Remove View type parameter from DocumentType

This commit is contained in:
Tim Taubert 2013-10-12 11:46:23 -07:00
parent a3d3337aed
commit 189bb6c95f
5 changed files with 11 additions and 12 deletions

View file

@ -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");
}