From 6b70adc33054f8aee8c54d0f460458a9df11b8a5 Mon Sep 17 00:00:00 2001 From: Russell Brenner Date: Thu, 18 Nov 2010 17:33:13 -0800 Subject: Merge WebKit at r72274: Initial merge by git. Change-Id: Ie51f0b4a16da82942bd516dce59cfb79ebbe25fb --- WebCore/xml/XSLTProcessor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'WebCore/xml/XSLTProcessor.cpp') 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) "\n"; } +XSLTProcessor::~XSLTProcessor() +{ + // Stylesheet shouldn't outlive its root node. + ASSERT(!m_stylesheetRootNode || !m_stylesheet || m_stylesheet->hasOneRef()); +} + PassRefPtr XSLTProcessor::createDocumentFromSource(const String& sourceString, const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode, Frame* frame) { -- cgit v1.1