From e2f24e3d935da443f9a81d5491a4d24fa48ad53b Mon Sep 17 00:00:00 2001 From: mjs Date: Sat, 13 Nov 2004 02:54:31 +0000 Subject: [PATCH] Reviewed by Gramps. - fixed another bug in the last checkin, isCacheValid was unitialized, resulting in sometimes using a huge bogus length value. * khtml/xml/dom_nodeimpl.cpp: (NodeListImpl::NodeListImpl): Initialize isCacheValid. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8000 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- WebCore/ChangeLog-2005-08-23 | 2 +- WebCore/khtml/xml/dom_nodeimpl.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23 index cdfb5c4dadb6..02b64970c1b5 100644 --- a/WebCore/ChangeLog-2005-08-23 +++ b/WebCore/ChangeLog-2005-08-23 @@ -1,6 +1,6 @@ 2004-11-12 Maciej Stachowiak - Reviewed by NOBODY (OOPS!). + Reviewed by Gramps. - fixed another bug in the last checkin, isCacheValid was unitialized, resulting in sometimes using a huge bogus length value. diff --git a/WebCore/khtml/xml/dom_nodeimpl.cpp b/WebCore/khtml/xml/dom_nodeimpl.cpp index 2fe06747ee50..cfe738631d27 100644 --- a/WebCore/khtml/xml/dom_nodeimpl.cpp +++ b/WebCore/khtml/xml/dom_nodeimpl.cpp @@ -2212,8 +2212,9 @@ void NodeBaseImpl::dispatchChildRemovalEvents( NodeImpl *child, int &exceptionco NodeListImpl::NodeListImpl(NodeImpl *_rootNode) + : rootNode(_rootNode), + isCacheValid(false) { - rootNode = _rootNode; rootNode->ref(); rootNode->registerNodeList(this); } -- 2.36.0