<https://webkit.org/b/128492>
Add a missing release() in ChildNodesLazySnapshot::nextNode()
so we don't have to churn the ref count.
Reviewed by Sam Weinig.
* dom/ContainerNode.h:
(WebCore::ChildNodesLazySnapshot::nextNode):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163754
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-02-09 Andreas Kling <akling@apple.com>
+
+ Reduce ref churn in ChildNodesLazySnapshot iteration.
+ <https://webkit.org/b/128492>
+
+ Add a missing release() in ChildNodesLazySnapshot::nextNode()
+ so we don't have to churn the ref count.
+
+ Reviewed by Sam Weinig.
+
+ * dom/ContainerNode.h:
+ (WebCore::ChildNodesLazySnapshot::nextNode):
+
2014-02-09 Andreas Kling <akling@apple.com>
Reduce ref churn in ChildInsertionNotifier.
PassRefPtr<Node> nextNode()
{
if (LIKELY(!hasSnapshot())) {
- RefPtr<Node> node = m_currentNode;
+ RefPtr<Node> node = m_currentNode.release();
if (node)
m_currentNode = node->nextSibling();
return node.release();