Skip to content

Commit

Permalink
added licence header to mod.rs and other review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nchinth committed Oct 25, 2014
1 parent 8eb2953 commit 33ba093
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions components/script/dom/servohtmlparser.rs
Expand Up @@ -45,12 +45,12 @@ pub struct ServoHTMLParser {
}

impl Parser for ServoHTMLParser{
fn parse_chunk(&self, input: String) {
fn parse_chunk(&self, input: String) {
self.tokenizer().borrow_mut().feed(input);
}
fn finish(&self){
self.tokenizer().borrow_mut().end();
}
}
fn finish(&self){
self.tokenizer().borrow_mut().end();
}
}

impl ServoHTMLParser {
Expand Down
8 changes: 6 additions & 2 deletions components/script/parse/mod.rs
@@ -1,6 +1,10 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

pub mod html;

pub trait Parser {
fn parse_chunk(&self,input: String);
fn finish(&self);
fn parse_chunk(&self,input: String);
fn finish(&self);
}

0 comments on commit 33ba093

Please sign in to comment.