Skip to content

[cleanup] Rename IntrinsicLogicalHeightComputationScope to OrthogonalIntrinsicContributionLayoutScope - #75626

Open
alanbaradlay wants to merge 1 commit into
WebKit:mainfrom
alanbaradlay:eng/cleanup-Rename-IntrinsicLogicalHeightComputationScope-to-OrthogonalIntrinsicContributionLayoutScope
Open

alanbaradlay wants to merge 1 commit into
WebKit:mainfrom
alanbaradlay:eng/cleanup-Rename-IntrinsicLogicalHeightComputationScope-to-OrthogonalIntrinsicContributionLayoutScope

Conversation

@alanbaradlay

@alanbaradlay alanbaradlay commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

d453a6a

[cleanup] Rename IntrinsicLogicalHeightComputationScope to OrthogonalIntrinsicContributionLayoutScope
https://bugs.webkit.org/show_bug.cgi?id=326042
<rdar://problem/188970306>

Reviewed by NOBODY (OOPS!).

IntrinsicLogicalHeightComputationScope marks an orthogonal box laid out only to give its container an intrinsic inline-size contribution, so its own percentage min/max-height follows the cyclic percentage rules.
Its name suggested a general intrinsic block-size measurement, the counterpart of an intrinsic width computation, which it is not.

* Source/WebCore/page/LocalFrameViewLayoutContext.cpp:
(WebCore::LocalFrameViewLayoutContext::addOrthogonalIntrinsicContributionLayout):
(WebCore::LocalFrameViewLayoutContext::removeOrthogonalIntrinsicContributionLayout):
(WebCore::LocalFrameViewLayoutContext::isInOrthogonalIntrinsicContributionLayout const):
(WebCore::LocalFrameViewLayoutContext::addIntrinsicLogicalHeightComputationFor): Deleted.
(WebCore::LocalFrameViewLayoutContext::removeIntrinsicLogicalHeightComputationFor): Deleted.
(WebCore::LocalFrameViewLayoutContext::isComputingIntrinsicLogicalHeightFor const): Deleted.
* Source/WebCore/page/LocalFrameViewLayoutContext.h:
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::computeLogicalHeight const):
(WebCore::RenderBox::computeIntrinsicLogicalHeight):
* Source/WebCore/rendering/RenderLayoutState.cpp:
(WebCore::OrthogonalIntrinsicContributionLayoutScope::OrthogonalIntrinsicContributionLayoutScope):
(WebCore::OrthogonalIntrinsicContributionLayoutScope::~OrthogonalIntrinsicContributionLayoutScope):
(WebCore::IntrinsicLogicalHeightComputationScope::IntrinsicLogicalHeightComputationScope): Deleted.
(WebCore::IntrinsicLogicalHeightComputationScope::~IntrinsicLogicalHeightComputationScope): Deleted.
* Source/WebCore/rendering/RenderLayoutState.h:

d453a6a

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows Apple Internal
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win ✅ 🛠 ios-apple
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 ❌ 🧪 win-tests ✅ 🛠 mac-apple
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac   🧪 api-wpe ✅ 🛠 vision-apple
✅ 🧪 ios-wk2-wpt ✅ 🧪 api-mac-debug
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk3-gcc
✅ 🛠 ios-safer-cpp ✅ 🧪 mac-AS-debug-wk2 ✅ 🛠 gtk
✅ 🛠 vision ✅ 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-intel-wk2 ✅ 🧪 api-gtk
✅ 🧪 vision-wk2 ✅ 🛠 mac-safer-cpp ✅ 🛠 playstation
✅ 🛠 tv ✅ 🧪 mac-site-isolation
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

…IntrinsicContributionLayoutScope

https://bugs.webkit.org/show_bug.cgi?id=326042
<rdar://problem/188970306>

Reviewed by NOBODY (OOPS!).

IntrinsicLogicalHeightComputationScope marks an orthogonal box laid out only to give its container an intrinsic inline-size contribution, so its own percentage min/max-height follows the cyclic percentage rules.
Its name suggested a general intrinsic block-size measurement, the counterpart of an intrinsic width computation, which it is not.

* Source/WebCore/page/LocalFrameViewLayoutContext.cpp:
(WebCore::LocalFrameViewLayoutContext::addOrthogonalIntrinsicContributionLayout):
(WebCore::LocalFrameViewLayoutContext::removeOrthogonalIntrinsicContributionLayout):
(WebCore::LocalFrameViewLayoutContext::isInOrthogonalIntrinsicContributionLayout const):
(WebCore::LocalFrameViewLayoutContext::addIntrinsicLogicalHeightComputationFor): Deleted.
(WebCore::LocalFrameViewLayoutContext::removeIntrinsicLogicalHeightComputationFor): Deleted.
(WebCore::LocalFrameViewLayoutContext::isComputingIntrinsicLogicalHeightFor const): Deleted.
* Source/WebCore/page/LocalFrameViewLayoutContext.h:
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::computeLogicalHeight const):
(WebCore::RenderBox::computeIntrinsicLogicalHeight):
* Source/WebCore/rendering/RenderLayoutState.cpp:
(WebCore::OrthogonalIntrinsicContributionLayoutScope::OrthogonalIntrinsicContributionLayoutScope):
(WebCore::OrthogonalIntrinsicContributionLayoutScope::~OrthogonalIntrinsicContributionLayoutScope):
(WebCore::IntrinsicLogicalHeightComputationScope::IntrinsicLogicalHeightComputationScope): Deleted.
(WebCore::IntrinsicLogicalHeightComputationScope::~IntrinsicLogicalHeightComputationScope): Deleted.
* Source/WebCore/rendering/RenderLayoutState.h:
@alanbaradlay
alanbaradlay requested a review from cdumez as a code owner October 2, 2026 02:24
@alanbaradlay alanbaradlay self-assigned this Oct 2, 2026
@alanbaradlay alanbaradlay added the New Bugs Unclassified bugs are placed in this component until the correct component can be determined. label Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Bugs Unclassified bugs are placed in this component until the correct component can be determined.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants