REGRESSION (r94492): Incorrect initial layout of absolutely positioned <input> inside...
authorrobert@webkit.org <robert@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Apr 2012 16:34:46 +0000 (16:34 +0000)
committerrobert@webkit.org <robert@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Apr 2012 16:34:46 +0000 (16:34 +0000)
commitfb7a333a19050f9f3582436f2fb751bb24b4ab42
tree2bdf8e1374407a03a57f152cd900bda9d0e34578
parent5232e93f8b2db5a4e422d6a4e3266ba51666d5ae
REGRESSION (r94492): Incorrect initial layout of absolutely positioned <input> inside centering div
https://bugs.webkit.org/show_bug.cgi?id=77754

Reviewed by David Hyatt.

Source/WebCore:

The correct static position of an center-aligned, inline, absolutely positioned object with a block child can't be known
until the width of the child has been computed. This means that setStaticPositions() in RenderBlockLineLayout is setting
the position too early, before the width of the child has been finalised. To fix, adjust the static position of the inline
positioned object once its child's width has been calculated.

Test: fast/css/align-positioned-object-on-resize.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::layoutPositionedObjects):

LayoutTests:

* fast/css/align-positioned-object-on-resize-expected.txt: Added.
* fast/css/align-positioned-object-on-resize.html: Added.
* platform/qt/Skipped: Skipped on Qt as window.resizeTo() does not work properly in Qt DRT.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113584 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/align-positioned-object-on-resize-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/align-positioned-object-on-resize.html [new file with mode: 0644]
LayoutTests/platform/qt/Skipped
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlock.cpp