Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[LFC][IFC] Treat floats as soft wrap opportunities
https://bugs.webkit.org/show_bug.cgi?id=219235 Reviewed by Antti Koivisto. While floats are not part of the inline content and they are not supposed to introduce soft wrap opportunities, e.g. [text][float box][float box][text][float box][text] is essentially just [text][text][text] figuring out whether a float (or set of floats) should stay on the line or not (and handle potentially out of order inline items) brings in unnecessary complexity (and apparently Blink works like this too). * layout/inlineformatting/InlineLineBuilder.cpp: (WebCore::Layout::isAtSoftWrapOpportunity): (WebCore::Layout::LineBuilder::nextWrapOpportunity const): Canonical link: https://commits.webkit.org/231860@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@270151 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
e907ec6
commit 93b0b55
Showing
2 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters