- fixed <rdar://problem/
3901109> REGRESSION (171-172): repro crash in DOM::NodeImpl::setChanged at chick-fil-a.com
* khtml/css/css_valueimpl.cpp: (DOM::CSSMutableStyleDeclarationImpl::CSSMutableStyleDeclarationImpl):
Added missing initialization for base class and node pointer.
- fixed a few places that could leave dangling node pointers
* khtml/html/html_baseimpl.cpp: (HTMLBodyElementImpl::~HTMLBodyElementImpl):
Clear out the node pointer when the node is destroyed.
* khtml/html/html_elementimpl.cpp: (HTMLElementImpl::~HTMLElementImpl): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8112
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2004-12-03 Darin Adler <darin@apple.com>
+
+ Reviewed by Vicki.
+
+ - fixed <rdar://problem/3901109> REGRESSION (171-172): repro crash in DOM::NodeImpl::setChanged at chick-fil-a.com
+
+ * khtml/css/css_valueimpl.cpp: (DOM::CSSMutableStyleDeclarationImpl::CSSMutableStyleDeclarationImpl):
+ Added missing initialization for base class and node pointer.
+
+ - fixed a few places that could leave dangling node pointers
+
+ * khtml/html/html_baseimpl.cpp: (HTMLBodyElementImpl::~HTMLBodyElementImpl):
+ Clear out the node pointer when the node is destroyed.
+ * khtml/html/html_elementimpl.cpp: (HTMLElementImpl::~HTMLElementImpl): Ditto.
+
2004-12-03 Chris Blumenberg <cblu@apple.com>
Fix for performance regression. My original patch added a signal for passing the data of a resource to its WebCore cache object. This patch passes the data with the preexisting "finished" symbol so we make less calls.
}
CSSMutableStyleDeclarationImpl::CSSMutableStyleDeclarationImpl(CSSRuleImpl *parent, const CSSProperty * const *properties, int numProperties)
+ : CSSStyleDeclarationImpl(parent), m_node(0)
{
for (int i = 0; i < numProperties; ++i)
m_values.append(*properties[i]);
HTMLBodyElementImpl::~HTMLBodyElementImpl()
{
if (m_linkDecl) {
+ m_linkDecl->setNode(0);
m_linkDecl->setParent(0);
m_linkDecl->deref();
}
HTMLElementImpl::~HTMLElementImpl()
{
if (m_inlineStyleDecl) {
+ m_inlineStyleDecl->setNode(0);
m_inlineStyleDecl->setParent(0);
m_inlineStyleDecl->deref();
}