[Webkit-unassigned] [Bug 57376] PreloadScanner should reuse tokens

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 13 08:03:24 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=57376





--- Comment #5 from Balazs Kelemen <kbalazs at webkit.org>  2011-07-13 08:03:21 PST ---
There is a problem with reusing the tokens from the scanner. The parsing algorithm requires the tree builder to participate in the tokenizing process at a few point like:
http://trac.webkit.org/browser/trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp#L464
http://trac.webkit.org/browser/trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp#L809
http://trac.webkit.org/browser/trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp#L833
(There is a a few more.)

This means we cannot produce the correct token stream without the tree builder. This could be solved by creating a mock tree builder just for guiding the tokenizer but it would make preloading more costly. On the other hand we are running the scanner while we are waiting for the network so maybe it could be worthwile.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list