Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c9f62c21dc06b15fc5b7d339f5da42cc189fd58c
https://github.com/WebKit/WebKit/commit/c9f62c21dc06b15fc5b7d339f5da42cc189fd58c
Author: Alan Baradlay <[email protected]>
Date: 2022-12-18 (Sun, 18 Dec 2022)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineLine.h
M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp
Log Message:
-----------
[IFC][hanging punctuation] Line::HangingTrailingContent should be able to
take leading content too
https://bugs.webkit.org/show_bug.cgi?id=249549
Reviewed by Antti Koivisto.
This is in preparation for supporting "hanging-punctuation" property.
1. Rename Line::HangingTrailingContent to HangingContent. This structure will
hold both
leading (punctuation) and trailing (punctuation, whitespace) hanging content.
No change in functionality yet.
* Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp:
(WebCore::Layout::Line::resetTrailingContent):
(WebCore::Layout::Line::applyRunExpansion):
(WebCore::Layout::Line::removeHangingGlyphs):
(WebCore::Layout::Line::appendTextContent):
(WebCore::Layout::Line::HangingContent::addLeadingGlyphs):
(WebCore::Layout::Line::HangingContent::addTrailingGlyphs):
(WebCore::Layout::Line::HangingTrailingContent::add): Deleted.
* Source/WebCore/layout/formattingContexts/inline/InlineLine.h:
(WebCore::Layout::Line::hangingTrailingContentWidth const):
(WebCore::Layout::Line::hangingLeadingContentWidth const):
(WebCore::Layout::Line::HangingContent::leadingLength const):
(WebCore::Layout::Line::HangingContent::trailingLength const):
(WebCore::Layout::Line::HangingContent::length const):
(WebCore::Layout::Line::HangingContent::leadingWidth const):
(WebCore::Layout::Line::HangingContent::trailingWidth const):
(WebCore::Layout::Line::HangingContent::width const):
(WebCore::Layout::Line::HangingContent::reset):
(WebCore::Layout::Line::HangingContent::resetTrailingGlyphs):
(WebCore::Layout::Line::HangingTrailingContent::length const): Deleted.
(WebCore::Layout::Line::HangingTrailingContent::width const): Deleted.
(WebCore::Layout::Line::HangingTrailingContent::reset): Deleted.
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::layoutInlineContent):
(WebCore::Layout::LineBuilder::handleInlineContent):
Canonical link: https://commits.webkit.org/258065@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes