If posChildNeedsLayout but !m_positionedObjects, normal layout is needed
[framework/web/webkit-efl.git] / Source / WebCore / rendering / RenderBlock.cpp
index 5565313..df6adea 100755 (executable)
@@ -2538,6 +2538,13 @@ bool RenderBlock::simplifiedLayout()
     if (needsPositionedMovementLayout() && !tryLayoutDoingPositionedMovementOnly())
         return false;
 
+#if ENABLE(TIZEN_POSITIONED_CHILD_RELAYOUT)
+    // If posChildNeedsLayout() but !m_positionedObjects, normal layout is needed for updating m_positionedObjects
+    // FIXME : this could be merged with the below code that checks posChildNeedsLayout.
+    if (posChildNeedsLayout() && !m_positionedObjects)
+        return false;
+#endif
+
     // Lay out positioned descendants or objects that just need to recompute overflow.
     if (needsSimplifiedNormalFlowLayout())
         simplifiedNormalFlowLayout();