Changeset 65824

Timestamp:
08/23/10 12:22:48 (5 years ago)
Author:
simon.fraser@apple.com
Message:

2010-08-23 Simon Fraser <simon.fraser@apple.com>

Reviewed by Alexey Proskuryakov.

TreeWalker is not calling acceptNode function in filter object
https://bugs.webkit.org/show_bug.cgi?id=35296

We only accepted raw functions as the NodeFilter on TreeWalker. Fix this to
look for an 'acceptNode' function on the filter object, and use that if present.
Also throw an exception if the filter object does not have an acceptNode function.

Test: fast/dom/TreeWalker/acceptNode-filter.html

  • bindings/js/JSNodeFilterCondition.cpp: (WebCore::JSNodeFilterCondition::acceptNode):
Location:
trunk
Files:
3 added
3 edited

Note: See TracChangeset for help on using the changeset viewer.