REGRESSION (r167879): Heap-use-after-free in WebCore::RenderFlexibleBox
[WebKit-https.git] / Source / WebCore / rendering / OrderIterator.cpp
index 987f552..7630136 100644 (file)
@@ -56,6 +56,11 @@ RenderBox* OrderIterator::next()
     return currentChild();
 }
 
+void OrderIterator::invalidate()
+{
+    m_children.clear();
+}
+
 static bool compareByOrderValueAndIndex(std::pair<RenderBox*, int> childAndIndex1, std::pair<RenderBox*, int> childAndIndex2)
 {
     if (childAndIndex1.first->style().order() != childAndIndex2.first->style().order())