public Document(Muktashif renderer, string raw) : base(Global.JSExecutor) { DocumentStyles = new List <Style>(); Renderer = renderer; PopulateFunctions(); Stopwatch sw = new Stopwatch(); sw.Start(); HtmlTokenizer = new HtmlTokenizer(raw); HtmlTokenizer.Tokenize(); HtmlTokenizer.Analyze(); DOMModel = new DOMObject(this); DOMModel.Process(); sw.Stop(); Console.WriteLine(sw.Elapsed.TotalMilliseconds + " ms."); }