Run the async HTML Tokenizer on a new thread

This commit is contained in:
Nikhil Shagrithaya 2017-06-24 13:27:09 +05:30
parent 3629efba75
commit 8ebd70d402
5 changed files with 469 additions and 223 deletions

View file

@ -26,6 +26,8 @@ unstable = []
bitflags = "0.7"
matches = "0.1"
cssparser = "0.18"
heapsize = "0.4"
heapsize_derive = "0.1"
log = "0.3"
fnv = "1.0"
phf = "0.7.18"

View file

@ -48,7 +48,7 @@ pub enum VisitedHandlingMode {
/// Which quirks mode is this document in.
///
/// See: https://quirks.spec.whatwg.org/
#[derive(PartialEq, Eq, Copy, Clone, Hash, Debug)]
#[derive(PartialEq, Eq, Copy, Clone, Hash, Debug, HeapSizeOf)]
pub enum QuirksMode {
/// Quirks mode.
Quirks,

View file

@ -7,9 +7,11 @@
#[macro_use] extern crate bitflags;
#[macro_use] extern crate cssparser;
#[macro_use] extern crate heapsize_derive;
#[macro_use] extern crate log;
#[macro_use] extern crate matches;
extern crate fnv;
extern crate heapsize;
extern crate phf;
extern crate precomputed_hash;
#[cfg(test)] #[macro_use] extern crate size_of_test;