Commit 10aa5f38 authored by andersca's avatar andersca

Reviewed by Darin.

        Add null checks on the node filter, they can be null if no filter was passed to the respective
        create functions.
        
        * bindings/js/JSNodeIteratorCustom.cpp:
        (WebCore::JSNodeIterator::mark):
        * bindings/js/JSTreeWalkerCustom.cpp:
        (WebCore::JSTreeWalker::mark):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4bf59f75
2006-11-15 Anders Carlsson <acarlsson@apple.com>
Reviewed by Darin.
Add null checks on the node filter, they can be null if no filter was passed to the respective
create functions.
* bindings/js/JSNodeIteratorCustom.cpp:
(WebCore::JSNodeIterator::mark):
* bindings/js/JSTreeWalkerCustom.cpp:
(WebCore::JSTreeWalker::mark):
2006-11-15 Oliver Hunt <oliver@apple.com>
Reviewed by Anders.
......@@ -26,7 +26,8 @@ namespace WebCore {
void JSNodeIterator::mark()
{
m_impl->filter()->mark();
if (NodeFilter* filter = m_impl->filter())
filter->mark();
DOMObject::mark();
}
......
......@@ -26,7 +26,8 @@ namespace WebCore {
void JSTreeWalker::mark()
{
m_impl->filter()->mark();
if (NodeFilter* filter = m_impl->filter())
filter->mark();
DOMObject::mark();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment