Skip to content
  • antti@apple.com's avatar
    Factor descendant iterator assertions into a class. · 1502213a
    antti@apple.com authored
    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: http://svn.webkit.org/repository/webkit/trunk@154751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1502213a