Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[LFC][IFC] Support each-line keyword in text-indent
https://bugs.webkit.org/show_bug.cgi?id=240731 Patch by Kiet Ho <tho22@apple.com> on 2022-05-25 Reviewed by Alan Bujtas. Normally, text-indent only affects the first line. When 'each-line' is specified, subsequent lines where the previous line ends with a hard break are also indented. This is supported in the legacy layout engine but not in LFC. Adds support for 'each-line' to bring LFC to parity with the legacy engine. Test: imported/w3c/web-platform-tests/css/css-text/text-indent/text-indent-each-line-hanging.html * LayoutTests/TestExpectations: Remove ImageOnlyFailure expectation. * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp: (WebCore::Layout::LineBuilder::layoutInlineContent): (WebCore::Layout::LineBuilder::computedIntrinsicWidth): (WebCore::Layout::LineBuilder::initialConstraintsForLine const): Add logic to indent line when 'each-line' is specified, and the previous line ends with a hard break. * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h: * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h: Modify initialConstraintsForLine to accept information about the previous line, not just whether there's one or not. Canonical link: https://commits.webkit.org/250978@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
d66b227
commit 8ac6fb0edfc973c9a39344b26a62b0f74f2d9d2b
Showing
3 changed files
with
26 additions
and
26 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
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