[webkit-changes] [WebKit/WebKit] 9a95ba: [IFC][Partial layout] InlineItemRange should be ab...
Alan Baradlay
noreply at github.com
Thu Feb 9 16:05:55 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9a95ba981664b792b4da4141374d818b7a680be7
https://github.com/WebKit/WebKit/commit/9a95ba981664b792b4da4141374d818b7a680be7
Author: Alan Baradlay <zalan at apple.com>
Date: 2023-02-09 (Thu, 09 Feb 2023)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineLineTypes.h
Log Message:
-----------
[IFC][Partial layout] InlineItemRange should be able to support partial range
https://bugs.webkit.org/show_bug.cgi?id=251970
Reviewed by Antti Koivisto.
With partial inline layout support the damaged content may start (end) inside an InlineItem and
we need to be able express such dirty ranges with InlineItemRange.
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::indexOfFirstInlineItemForNextLine):
(WebCore::Layout::InlineFormattingContext::lineLayout):
(WebCore::Layout::InlineFormattingContext::computedIntrinsicWidthForConstraint const):
(WebCore::Layout::InlineFormattingContext::resetGeometryForClampedContent):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::layoutInlineContent):
(WebCore::Layout::LineBuilder::initialize):
(WebCore::Layout::LineBuilder::placeInlineContent):
(WebCore::Layout::LineBuilder::close):
(WebCore::Layout::LineBuilder::candidateContentForLine):
(WebCore::Layout::LineBuilder::nextWrapOpportunity const):
(WebCore::Layout::LineBuilder::rebuildLineWithInlineContent):
(WebCore::Layout::LineBuilder::isLastLineWithInlineContent const):
* Source/WebCore/layout/formattingContexts/inline/InlineLineTypes.h:
(WebCore::Layout::InlineItemRange::startIndex const):
(WebCore::Layout::InlineItemRange::endIndex const):
(WebCore::Layout::InlineItemRange::isEmpty const):
(WebCore::Layout::InlineItemRange::InlineItemRange):
(WebCore::Layout::InlineItemRange::size const): Deleted.
Canonical link: https://commits.webkit.org/260092@main
More information about the webkit-changes
mailing list