This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing 2 changed files with 31 additions and 9 deletions.