[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/khtml
From: Antonio Larrosa Jimenez <larrosa () kde ! org>
Date: 2003-08-28 13:51:27
[Download RAW message or body]
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();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic