From kde-commits Thu Aug 28 13:51:27 2003 From: Antonio Larrosa Jimenez Date: Thu, 28 Aug 2003 13:51:27 +0000 To: kde-commits Subject: kdelibs/khtml X-MARC-Message: https://marc.info/?l=kde-commits&m=106207872823968 CVS commit by antlarr: Add/Remove a reference to KHTMLFactory from DOM::DocumentImpl as the document uses data stored in the factory. Ok'ed by Lars M +6 -0 khtml_factory.h 1.8 M +4 -0 xml/dom_docimpl.cpp 1.239 --- kdelibs/khtml/khtml_factory.h #1.7:1.8 @@ -32,7 +32,13 @@ class KHTMLSettings; class KHTMLPart; +namespace DOM +{ + class DocumentImpl; +}; + class KHTMLFactory : public KParts::Factory { Q_OBJECT + friend class DOM::DocumentImpl; public: KHTMLFactory( bool clone = false ); --- kdelibs/khtml/xml/dom_docimpl.cpp #1.238:1.239 @@ -379,4 +379,6 @@ DocumentImpl::DocumentImpl(DOMImplementa m_inSyncLoad = false; m_loadingXMLDoc = 0; + + KHTMLFactory::ref(); } @@ -409,4 +411,6 @@ DocumentImpl::~DocumentImpl() m_renderArena = 0; } + + KHTMLFactory::deref(); }