Use renderer iterators in two more places.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Feb 2014 08:45:47 +0000 (08:45 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Feb 2014 08:45:47 +0000 (08:45 +0000)
commitbe351a9a2975606284b96f3f5747a02e8c032c59
treed6ce053d7eea660ca1731e5ae37b5ab8e5f7ec1a
parentaaa44784b320802f6d8c6bc39a9b7ce88af3e67f
Use renderer iterators in two more places.
<https://webkit.org/b/128371>

Reviewed by Antti Koivisto.

* dom/Position.cpp:
(WebCore::Position::primaryDirection):

    Use lineageOfType instead of walking the parent chain.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::insertOnlyThisLayer):

    Use childrenOfType instead of walking the children.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/Position.cpp
Source/WebCore/rendering/RenderLayer.cpp