<rdar://problem/9479926> REGRESSION (r82144): Icon overlaps text in Twitter message...
authorDan Bernstein <mitz@webkit.org>
Sun, 22 May 2011 04:44:27 +0000 (04:44 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 23 May 2011 14:30:22 +0000 (11:30 -0300)
commitc4e70104bbca28568dfa27ea3b84c7154ef7770a
tree0c58faf27436ad64c36b1c5860fd8fa13e5f4c53
parentc6d8071e014a5ad07aa4919671a1e6a5d9b3be2f
<rdar://problem/9479926> REGRESSION (r82144): Icon overlaps text in Twitter message dialog
https://bugs.webkit.org/show_bug.cgi?id=61241

Reviewed by Darin Adler.

Source/WebCore:

Test: fast/block/positioning/start-ignoring-before.html

* rendering/RenderBlockLineLayout.cpp:
(WebCore::TrailingObjects::updateMidpointsForTrailingBoxes): Added a boolean parameter saying
whether to merge the first trailing space with the line break.
(WebCore::RenderBlock::LineBreaker::nextLineBreak): When adding a midpoint behind the current
character, account for trailing positioned objects that occurred after the midpoint by calling
updateMidpointsForTrailingBoxes(), which adds midpoints for them.

LayoutTests:

* fast/block/positioning/start-ignoring-before-expected.png: Added.
* fast/block/positioning/start-ignoring-before-expected.txt: Added.
* fast/block/positioning/start-ignoring-before.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87026 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/block/positioning/start-ignoring-before-expected.png [new file with mode: 0644]
LayoutTests/fast/block/positioning/start-ignoring-before-expected.txt [new file with mode: 0644]
LayoutTests/fast/block/positioning/start-ignoring-before.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlockLineLayout.cpp