[Webkit-unassigned] [Bug 120563] Add element ancestor iterator

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 1 00:54:33 PDT 2013


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





--- Comment #4 from Antti Koivisto <koivisto at iki.fi>  2013-09-01 00:53:53 PST ---
I don't think anything else than actual iteration belong to iterators. They are stl compatible and you can add your own helpers.

With stl you can do things like:

auto lineage = elementLineage(this);
auto nearestEditable = std::find_if(lineage.begin(), lineage.end(), [](Element& e) { return e.rendererIsEditable(); } );

-- 
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