<rdar://problem/10208291> first-letter in generated before content with display:...
[WebKit-https.git] / Source / WebCore / rendering / RenderView.cpp
index 1fefac4f0192ea3eb05415cb3434af5b09f6a741..775b15d45f155d3ad803d75d374fce9ee7d14510 100644 (file)
@@ -142,6 +142,10 @@ void RenderView::layout()
     ASSERT(m_layoutState == &state);
     m_layoutState = 0;
     setNeedsLayout(false);
+#if !ASSERT_DISABLED
+    for (RenderObject* renderer = this; renderer; renderer = renderer->nextInPreOrder())
+        ASSERT(!renderer->needsLayout());
+#endif
 }
 
 void RenderView::mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool fixed, bool useTransforms, TransformState& transformState, bool* wasFixed) const