Factor descendant iterator assertions into a class.
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Aug 2013 16:33:49 +0000 (16:33 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Aug 2013 16:33:49 +0000 (16:33 +0000)
commit6ba9caf2c6a5d974964893c5ddd4016d10dded0e
treeadc594c9a3538533e08c6e5df9cd82f637c48885
parent7fef3ac37b264f601a87bb8e87b63147a9ac4438
Factor descendant iterator assertions into a class.
https://bugs.webkit.org/show_bug.cgi?id=120422

Reviewed by Darin Adler.

Share the assertions between ChildIterator and DescendantIterator. We can use it for future const iterators too.

* GNUmakefile.list.am:
* Target.pri:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.xcodeproj/project.pbxproj:
* dom/ChildIterator.h:
(WebCore::::ChildIterator):
(WebCore::::operator):
(WebCore::=):
* dom/DescendantIterator.h:
(WebCore::::DescendantIterator):
(WebCore::::operator):
(WebCore::=):
* dom/DescendantIteratorAssertions.h: Added.
(WebCore::DescendantIteratorAssertions::DescendantIteratorAssertions):
(WebCore::DescendantIteratorAssertions::domTreeHasMutated):
(WebCore::DescendantIteratorAssertions::dropEventDispatchAssertion):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@154751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.list.am
Source/WebCore/Target.pri
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/dom/ChildIterator.h
Source/WebCore/dom/DescendantIterator.h
Source/WebCore/dom/DescendantIteratorAssertions.h [new file with mode: 0644]