[webkit-changes] [WebKit/WebKit] d8aa06: [css-flex] Use FlexItems as a type alias for Vecto...
Sammy Gill
noreply at github.com
Mon Aug 14 07:40:46 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d8aa063fb4e499692a9fe09f663008d5f3bc675e
https://github.com/WebKit/WebKit/commit/d8aa063fb4e499692a9fe09f663008d5f3bc675e
Author: Sammy Gill <sammy.gill at apple.com>
Date: 2023-08-14 (Mon, 14 Aug 2023)
Changed paths:
M Source/WebCore/rendering/RenderFlexibleBox.cpp
M Source/WebCore/rendering/RenderFlexibleBox.h
Log Message:
-----------
[css-flex] Use FlexItems as a type alias for Vector<FlexItem>.
https://bugs.webkit.org/show_bug.cgi?id=260106
rdar://problem/113777139
Reviewed by Tim Nguyen.
We can refer to a Vector<FlexItem> simply as FlexItems. Changed all
uses of this type to the new alias and also instances where a variable
named "children," was used with this type to "flexItems." We can
probably also find other spots where "child," can be replaced with
"flexItem," but that would probably increase the size of the patch
and this is a good start for now.
* Source/WebCore/rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::LineState::LineState):
(WebCore::RenderFlexibleBox::layoutFlexItems):
(WebCore::RenderFlexibleBox::autoMarginOffsetInMainAxis):
(WebCore::RenderFlexibleBox::freezeInflexibleItems):
(WebCore::RenderFlexibleBox::resolveFlexibleLengths):
(WebCore::RenderFlexibleBox::layoutAndPlaceChildren):
(WebCore::RenderFlexibleBox::layoutColumnReverse):
* Source/WebCore/rendering/RenderFlexibleBox.h:
Canonical link: https://commits.webkit.org/266864@main
More information about the webkit-changes
mailing list