diff options
Diffstat (limited to 'WebCore/xml/XSLTProcessor.cpp')
-rw-r--r-- | WebCore/xml/XSLTProcessor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/WebCore/xml/XSLTProcessor.cpp b/WebCore/xml/XSLTProcessor.cpp index 5fd009c..59afd73 100644 --- a/WebCore/xml/XSLTProcessor.cpp +++ b/WebCore/xml/XSLTProcessor.cpp @@ -60,6 +60,12 @@ static inline void transformTextStringToXHTMLDocumentString(String& text) "</html>\n"; } +XSLTProcessor::~XSLTProcessor() +{ + // Stylesheet shouldn't outlive its root node. + ASSERT(!m_stylesheetRootNode || !m_stylesheet || m_stylesheet->hasOneRef()); +} + PassRefPtr<Document> XSLTProcessor::createDocumentFromSource(const String& sourceString, const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode, Frame* frame) { |