mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Upgrade to rustc ba2f13ef0 2015-02-04
This commit is contained in:
parent
bc6882bdef
commit
d5dd1d658e
136 changed files with 1091 additions and 878 deletions
|
@ -55,7 +55,8 @@ impl SinkHelpers for servohtmlparser::Sink {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> TreeSink<JS<Node>> for servohtmlparser::Sink {
|
||||
impl<'a> TreeSink for servohtmlparser::Sink {
|
||||
type Handle = JS<Node>;
|
||||
fn get_document(&mut self) -> JS<Node> {
|
||||
let doc = self.document.root();
|
||||
let node: JSRef<Node> = NodeCast::from_ref(doc.r());
|
||||
|
@ -162,6 +163,10 @@ impl<'a> TreeSink<JS<Node>> for servohtmlparser::Sink {
|
|||
let script: Option<JSRef<HTMLScriptElement>> = HTMLScriptElementCast::to_ref(node.r());
|
||||
script.map(|script| script.prepare());
|
||||
}
|
||||
|
||||
fn reparent_children(&mut self, _node: JS<Node>, _new_parent: JS<Node>) {
|
||||
panic!("unimplemented")
|
||||
}
|
||||
}
|
||||
|
||||
pub fn parse_html(document: JSRef<Document>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue