If posChildNeedsLayout but !m_positionedObjects, normal layout is needed
authorKyungTae Kim <ktf.kim@samsung.com>
Sat, 8 Jun 2013 00:22:59 +0000 (09:22 +0900)
committerKyungTae Kim <ktf.kim@samsung.com>
Mon, 10 Jun 2013 07:20:27 +0000 (16:20 +0900)
commitbd348776913930c0837e5638a8bc68ef5ab24419
tree79bdd26dca0c1c393470a4ee902972f54096a64e
parentb7eb89701c2fa1252fc8df75227c3d77cc2cd77b
If posChildNeedsLayout but !m_positionedObjects, normal layout is needed

[Title]
If posChildNeedsLayout but !m_positionedObjects, normal layout is needed
[Issue]
Docomo Shabette Conciere Web App Issue
[Problem]
The mascot image is not shown when start up
[Cause]
The "content_main" element is a positioned child of "ui-scrollview-view",
but was not registered to m_positionedObjects during first layout of "ui-scrollview-view".
Then, when the mascot image is added to "content_main",
the layout of "ui-scrollview-view" triggered with posChildNeedsLayout flag,
but layoutPositionedObjects called by simplifiedLayout is just returned.
[Solution]
If posChildNeedsLayout but !m_positionedObjects, return the simplifiedLayout with false
to execute normal layoutBlock that register the pos child and execute the layoutPositionedObjects.

Change-Id: Ic116480d7ffde39d617935ff1b5d3e42663a83c4
Source/WTF/wtf/Platform.h
Source/WebCore/rendering/RenderBlock.cpp