[LayoutReloaded] Fix static position for floating boxes when they don't fit the curre...
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Apr 2018 04:57:10 +0000 (04:57 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Apr 2018 04:57:10 +0000 (04:57 +0000)
commit5649bc707d4cb9ab8ced65c955e69c97ecfb5ab6
tree5f8504999330a2a47dd4c0bb7ace8f192dfc572f
parentc33475e4c560c927a00845055395acdc5a9530d6
[LayoutReloaded] Fix static position for floating boxes when they don't fit the current line
https://bugs.webkit.org/show_bug.cgi?id=184354

Reviewed by Antti Koivisto.

Do not shrink the current line with the floating box unless it is on the current line.

* LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
(InlineFormattingContext.prototype._handleFloatingBox):
(InlineFormattingContext.prototype._mapFloatingVerticalPosition):
* LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
(Line.prototype.addFloatingBox):
(Line):
* LayoutReloaded/test/index.html:
* LayoutReloaded/test/inline-with-right-floats3.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js
Tools/LayoutReloaded/FormattingContext/InlineFormatting/Line.js
Tools/LayoutReloaded/test/index.html
Tools/LayoutReloaded/test/inline-with-right-floats3.html [new file with mode: 0644]