[webkit-changes] [WebKit/WebKit] 5e46e7: [IFC] Introduce IntrinsicWidthHandler
Alan Baradlay
noreply at github.com
Mon Aug 21 10:47:18 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5e46e7aea7e71d2da001a3d6333508af9ff18988
https://github.com/WebKit/WebKit/commit/5e46e7aea7e71d2da001a3d6333508af9ff18988
Author: Alan Baradlay <zalan at apple.com>
Date: 2023-08-21 (Mon, 21 Aug 2023)
Changed paths:
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.h
A Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp
A Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.h
Log Message:
-----------
[IFC] Introduce IntrinsicWidthHandler
https://bugs.webkit.org/show_bug.cgi?id=260451
Reviewed by Antti Koivisto.
This is in preparation for adding fast path for minimum size computation.
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp: Moving code.
(WebCore::Layout::InlineFormattingContext::computedIntrinsicSizes):
(WebCore::Layout::InlineFormattingContext::maximumContentSize):
(WebCore::Layout::InlineFormattingContext::computedIntrinsicWidthForConstraint): Deleted.
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.h:
* Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.cpp: Added.
(WebCore::Layout::IntrinsicWidthHandler::IntrinsicWidthHandler):
(WebCore::Layout::IntrinsicWidthHandler::computedIntrinsicSizes):
(WebCore::Layout::IntrinsicWidthHandler::maximumContentSize):
(WebCore::Layout::IntrinsicWidthHandler::computedIntrinsicWidthForConstraint):
(WebCore::Layout::IntrinsicWidthHandler::formattingContext const):
(WebCore::Layout::IntrinsicWidthHandler::formattingState const):
(WebCore::Layout::IntrinsicWidthHandler::root const):
* Source/WebCore/layout/formattingContexts/inline/IntrinsicWidthHandler.h: Added.
(WebCore::Layout::IntrinsicWidthHandler::maximumIntrinsicWidthResult const):
Canonical link: https://commits.webkit.org/267094@main
More information about the webkit-changes
mailing list