Index: Source/WebCore/rendering/RenderFlexibleBox.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderFlexibleBox.cpp (revision 90847) |
+++ Source/WebCore/rendering/RenderFlexibleBox.cpp (working copy) |
@@ -89,8 +89,8 @@ |
m_currentChild = m_forward ? m_currentChild->nextSiblingBox() : m_currentChild->previousSiblingBox(); |
if (m_currentChild && m_currentChild->style()->boxOrdinalGroup() > m_lastOrdinal) |
m_lastOrdinal = m_currentChild->style()->boxOrdinalGroup(); |
- } while (!m_currentChild || m_currentChild->style()->boxOrdinalGroup() != m_currentOrdinal |
- || m_currentChild->style()->visibility() == COLLAPSE); |
+ } while (!m_currentChild || (!m_currentChild->isAnonymous() |
+ && (m_currentChild->style()->boxOrdinalGroup() != m_currentOrdinal || m_currentChild->style()->visibility() == COLLAPSE))); |
return m_currentChild; |
} |