Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 80b886c76bea5e2aa8fe6f1765b6cf76c1e312d9 https://github.com/WebKit/WebKit/commit/80b886c76bea5e2aa8fe6f1765b6cf76c1e312d9 Author: Alan Baradlay <za...@apple.com> Date: 2023-11-23 (Thu, 23 Nov 2023)
Changed paths: M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h Log Message: ----------- [IFC] Remove redundant LineBuilder::initialConstraintsForLine https://bugs.webkit.org/show_bug.cgi?id=265273 Reviewed by Antti Koivisto. 1. Move logic from initialConstraintsForLine over to LineBuilder::initialize 2. Turn struct UsedConstraints to a more specific struct RectAndFloatConstraints. 3. Rename floatConstrainedRect to floatAvoidingRect. * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp: (WebCore::Layout::LineBuilder::layoutInlineContent): (WebCore::Layout::LineBuilder::initialize): (WebCore::Layout::LineBuilder::floatAvoidingRect const): (WebCore::Layout::LineBuilder::adjustedLineRectWithCandidateInlineContent const): (WebCore::Layout::LineBuilder::tryPlacingFloatBox): (WebCore::Layout::LineBuilder::handleInlineContent): (WebCore::Layout::LineBuilder::initialConstraintsForLine const): Deleted. (WebCore::Layout::LineBuilder::floatConstrainedRect const): Deleted. * Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h: Canonical link: https://commits.webkit.org/271086@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes