[Webkit-unassigned] [Bug 120248] Element child and descendant iterators

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 24 23:44:23 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=120248





--- Comment #6 from Antti Koivisto <koivisto at iki.fi>  2013-08-24 23:43:49 PST ---
(In reply to comment #3)
> Will look nice in C++11 for loops.
> 
> When we use element pointers, it’s well defined what happens if the document changes while we are iterating. For iterators, we’d want to define what happens in that case. What our hash tables do with iterators is that in debug versions they invalidate iterators when changes are made to the underlying data structure. Maybe we could do some variation on that.

Yeah. I think we should assert that there are no tree mutations during iteration. Not just in the current subtree, in the entire tree.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list