Hide RenderLayer z-order and normal flow lists behind iterators
Created attachment 352011 [details] Patch
Comment on attachment 352011 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=352011&action=review > Source/WebCore/rendering/RenderLayer.h:373 > + iterator begin() { return m_layerList ? m_layerList->begin() : nullptr; } > + iterator end() { return m_layerList ? m_layerList->end() : nullptr; } > + > + reverse_iterator rbegin() { return reverse_iterator(end()); } > + reverse_iterator rend() { return reverse_iterator(begin()); } It's a bit odd that a class named Iterator has functions like these.
LayerIterable? LayerList?
(In reply to Simon Fraser (smfr) from comment #3) > LayerIterable? LayerList? LayerList is fine.
https://trac.webkit.org/changeset/237058/webkit
<rdar://problem/45874621>