servo: Long lines
authorPatrick Walton <pcwalton@mimiga.net>
Thu, 06 Sep 2012 13:31:28 -0700
changeset 361877 1470a44d3f254b3d5c0244410894dbc7d43c9ddf
parent 361876 6ff2b18e660cd9589cef26fab1f9ef14497f8959
child 361878 7558834c2fca470a61df56b86903e5c8dffea25a
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
servo: Long lines Source-Repo: https://github.com/servo/servo Source-Revision: dc2664f5f930e491dea38bb4344fc5770d81cd6f
servo/src/servo/parser/hubbub_html_parser.rs
--- a/servo/src/servo/parser/hubbub_html_parser.rs
+++ b/servo/src/servo/parser/hubbub_html_parser.rs
@@ -164,17 +164,18 @@ fn parse_html(scope: NodeScope, url: Url
             let public_id = match doctype.public_id {
                 None => None,
                 Some(id) => Some(from_slice(id))
             };
             let system_id = match doctype.system_id {
                 None => None,
                 Some(id) => Some(from_slice(id))
             };
-            let new_node = scope.new_node(Doctype(DoctypeData(name, public_id, system_id, doctype.force_quirks)));
+            let data = DoctypeData(name, public_id, system_id, doctype.force_quirks);
+            let new_node = scope.new_node(Doctype(data));
             unsafe { reinterpret_cast(&new_node) }
         },
         create_element: |tag: &hubbub::Tag| {
             debug!("create element");
             let element_kind = build_element_kind(tag.name);
             let node = scope.new_node(Element(ElementData(from_slice(tag.name), element_kind)));
             for tag.attributes.each |attribute| {
                 do scope.read(node) |node_contents| {