Enable fieldsets to be flexboxes, grids and multicolumn.
[WebKit-https.git] / Source / WebCore / rendering / OrderIterator.cpp
index b11bccc..4fab596 100644 (file)
@@ -77,14 +77,20 @@ void OrderIterator::reset()
     m_isReset = true;
 }
 
+bool OrderIterator::shouldSkipChild(const RenderObject& child) const
+{
+    return child.isOutOfFlowPositioned() || child.isExcludedFromNormalLayout();
+}
+
 OrderIteratorPopulator::~OrderIteratorPopulator()
 {
     m_iterator.reset();
 }
 
-void OrderIteratorPopulator::collectChild(const RenderBox& child)
+bool OrderIteratorPopulator::collectChild(const RenderBox& child)
 {
     m_iterator.m_orderValues.insert(child.style().order());
+    return !m_iterator.shouldSkipChild(child);
 }