[Webkit-unassigned] [Bug 80045] SPDY 3 spec fails to render in Webkit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 1 16:13:05 PST 2012


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





--- Comment #5 from Eric Seidel <eric at webkit.org>  2012-03-01 16:13:05 PST ---
XSLT handling is kinda crazy in WebKit.  We re-parse the document (and stylesheet) with libxml, pass it off to libxslt, and then serialize back to text, re-parse with webkit and finally display the result.  To add to the fun we convert from WebKit's utf16 strings to utf8 for libxml/xslt as well. :)

We parse the whole document, record that we saw an XSLT transform:
http://trac.webkit.org/browser/trunk/Source/WebCore/xml/parser/XMLDocumentParser.h#L192
save off the text-source of the XML:
http://trac.webkit.org/browser/trunk/Source/WebCore/xml/parser/XMLDocumentParser.cpp#L119
http://trac.webkit.org/browser/trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp#L1262

The normal loader system:
http://trac.webkit.org/browser/trunk/Source/WebCore/loader/cache/CachedXSLStyleSheet.cpp
loads the XSL stylesheet, then it's parsed:
http://trac.webkit.org/browser/trunk/Source/WebCore/xml/XSLStyleSheetLibxslt.cpp#L132

The Document itself actually drives the application of the stylesheet:
http://trac.webkit.org/browser/trunk/Source/WebCore/dom/Document.cpp#L4277
I suspect that FIXME might lead to understanding better what's going on here. :)

I'm happy to explain further if someone is interested in looking into this.

-- 
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