<rdar://problem/9479926> REGRESSION (r82144): Icon overlaps text in Twitter message...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 22 May 2011 04:44:27 +0000 (04:44 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 22 May 2011 04:44:27 +0000 (04:44 +0000)
commit244323d2af0bbede0f67ee9d074a541b6a066ea7
treeb881d4363f17286abdd2afe68efbd3ebccb1e08e
parentf24eb5ed132b0b4b80d7ef1c656439ac1297aa88
<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: https://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