2008-11-04 Jonathan Haas <myrdred@gmail.com>
Addiitonal tweaks and patch prep by Pamela Greene <pam@chromium.org>
Reviewed by Darin Adler.
Fixed an issue which could cause memory corruption using ToT libxml.
See https://bugs.webkit.org/show_bug.cgi?id=15715
Test: fast/xsl/xslt-nested-stylesheets.xml
* xml/XSLImportRule.cpp:
(WebCore::XSLImportRule::setXSLStyleSheet): Set parent rather than owner document
* xml/XSLStyleSheet.cpp:
(WebCore::XSLStyleSheet::XSLStyleSheet): Initialize m_parentStyleSheet
(WebCore::XSLStyleSheet::parseString): Make all child stylesheets use parent's dictionary
(WebCore::XSLStyleSheet::setParentStyleSheet): Added
* xml/XSLStyleSheet.h: Added m_parentStyleSheet member
2008-11-04 Pamela Greene <pam@chromium.org>
Reviewed by Darin Adler.
Added test for crash resulting from nested stylesheets using certain
builds of libxml2. See https://bugs.webkit.org/show_bug.cgi?id=15715 .
* fast/xsl/resources/xslt-nested-stylesheets0.xsl: Added.
* fast/xsl/resources/xslt-nested-stylesheets1.xsl: Added.
* fast/xsl/xslt-nested-stylesheets-expected.txt: Added.
* fast/xsl/xslt-nested-stylesheets.xml: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38115 268f45cc-cd09-0410-ab3c-d52691b4dbfc
9 files changed