-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cleanup] Remove RenderBox::hasOverridingContainingBlock*
https://bugs.webkit.org/show_bug.cgi?id=273967 Reviewed by Simon Fraser. This patch removes redundant hash lookups on override size (see webkit.org/b/273880 273885 273887). (This one is a slightly more verbose as HashMap contains an std:optional<LayoutUnit>. It is supposed to differentiate no-override/indefinite-override/definite-override states. We should instead have an indicator for such override types e.g. struct vs. single LayoutUnit) * Source/WebCore/rendering/GridLayoutFunctions.cpp: (WebCore::GridLayoutFunctions::overridingContainingBlockContentSizeForChild): (WebCore::GridLayoutFunctions::hasOverridingContainingBlockContentSizeForChild): Deleted. * Source/WebCore/rendering/GridLayoutFunctions.h: * Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp: (WebCore::GridTrackSizingAlgorithmStrategy::logicalHeightForChild const): (WebCore::GridTrackSizingAlgorithmStrategy::updateOverridingContainingBlockContentSizeForChild const): * Source/WebCore/rendering/RenderBox.cpp: (WebCore::RenderBox::overridingContainingBlockContentWidth const): (WebCore::RenderBox::overridingContainingBlockContentHeight const): (WebCore::RenderBox::overridingContainingBlockContentLogicalWidth const): (WebCore::RenderBox::overridingContainingBlockContentLogicalHeight const): (WebCore::RenderBox::setOverridingContainingBlockContentLogicalWidth): (WebCore::RenderBox::setOverridingContainingBlockContentLogicalHeight): (WebCore::RenderBox::containingBlockLogicalWidthForContent const): (WebCore::RenderBox::containingBlockLogicalHeightForContent const): (WebCore::RenderBox::perpendicularContainingBlockLogicalHeight const): (WebCore::RenderBox::computePercentageLogicalHeight const): (WebCore::RenderBox::replacedMinMaxLogicalHeightComputesAsNone const): (WebCore::RenderBox::containingBlockLogicalWidthForPositioned const): (WebCore::RenderBox::containingBlockLogicalHeightForPositioned const): (WebCore::RenderBox::overridingLogicalHeight const): Deleted. (WebCore::RenderBox::hasOverridingContainingBlockContentWidth const): Deleted. (WebCore::RenderBox::hasOverridingContainingBlockContentHeight const): Deleted. (WebCore::RenderBox::hasOverridingContainingBlockContentLogicalWidth const): Deleted. (WebCore::RenderBox::hasOverridingContainingBlockContentLogicalHeight const): Deleted. * Source/WebCore/rendering/RenderBox.h: * Source/WebCore/rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight const): (WebCore::RenderBoxModelObject::relativePositionOffset const): * Source/WebCore/rendering/RenderGrid.cpp: (WebCore::RenderGrid::placeItemsOnGrid): (WebCore::overrideSizeChanged): (WebCore::RenderGrid::applyStretchAlignmentToChildIfNeeded): (WebCore::RenderGrid::applySubgridStretchAlignmentToChildIfNeeded): (WebCore::RenderGrid::updateAutoMarginsInRowAxisIfNeeded): (WebCore::RenderGrid::updateAutoMarginsInColumnAxisIfNeeded): (WebCore::RenderGrid::gridAreaPositionForOutOfFlowChild const): Canonical link: https://commits.webkit.org/278616@main
- Loading branch information
1 parent
852eb0c
commit cdde289
Showing
7 changed files
with
124 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.