diff options
Diffstat (limited to 'WebCore/dom/RawDataDocumentParser.h')
-rw-r--r-- | WebCore/dom/RawDataDocumentParser.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/WebCore/dom/RawDataDocumentParser.h b/WebCore/dom/RawDataDocumentParser.h index 2eb3d0a..093ddaf 100644 --- a/WebCore/dom/RawDataDocumentParser.h +++ b/WebCore/dom/RawDataDocumentParser.h @@ -31,17 +31,16 @@ namespace WebCore { class RawDataDocumentParser : public DocumentParser { -public: +protected: RawDataDocumentParser(Document* document) : DocumentParser(document) { } -protected: virtual void finish() { - if (!m_parserStopped) - m_document->finishedParsing(); + if (!m_parserStopped && !isDetached()) + document()->finishedParsing(); } private: |