Skip to content

[blocks-in-inline] Don't wrap sequences of blocks in anonymous block#55250

Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
anttijk:blocks-in-inline-no-anon
Dec 12, 2025
Merged

[blocks-in-inline] Don't wrap sequences of blocks in anonymous block#55250
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
anttijk:blocks-in-inline-no-anon

Conversation

@anttijk
Copy link
Copy Markdown
Contributor

@anttijk anttijk commented Dec 11, 2025

95b8f1effe20dd5720249113ce534e3d01f7d9b8

[blocks-in-inline] Don't wrap sequences of blocks in anonymous block
https://bugs.webkit.org/show_bug.cgi?id=303999
rdar://166306432

Reviewed by NOBODY (OOPS!).

We already don't wrap single blocks. Remove remaining anonymous block wrapping.

* LayoutTests/editing/selection/hit-test-continuation-margin-expected.html:
* LayoutTests/editing/selection/hit-test-continuation-margin.html:

This is a progression, our selection behavior now matches with or without the span.
Change the ref to be the spanless case.

* Source/WebCore/rendering/updating/RenderTreeBuilder.cpp:
(WebCore::RenderTreeBuilder::updateAfterDescendants):
* Source/WebCore/rendering/updating/RenderTreeBuilderInline.cpp:
(WebCore::RenderTreeBuilder::Inline::updateAfterDescendants): Deleted.
(WebCore::RenderTreeBuilder::Inline::wrapRunsOfBlocksInAnonymousBlock): Deleted.
* Source/WebCore/rendering/updating/RenderTreeBuilderInline.h:

95b8f1e

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 🛠 wpe-cairo-libwebrtc
🧪 api-ios ✅ 🧪 mac-wk1 🛠 gtk
✅ 🛠 vision ✅ 🧪 mac-wk2 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-AS-debug-wk2 🧪 api-gtk
✅ 🛠 🧪 merge ✅ 🧪 vision-wk2 ✅ 🧪 mac-wk2-stress 🛠 playstation
✅ 🛠 tv ✅ 🧪 mac-intel-wk2
✅ 🛠 tv-sim ✅ 🛠 mac-safer-cpp
✅ 🛠 watch
✅ 🛠 watch-sim

@anttijk anttijk self-assigned this Dec 11, 2025
@anttijk anttijk added the Layout and Rendering For bugs with layout and rendering of Web pages. label Dec 11, 2025
@anttijk anttijk added the no-failure-limits Disable layout test failure limits on a pull-request label Dec 11, 2025
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Dec 11, 2025
@anttijk anttijk removed the merging-blocked Applied to prevent a change from being merged label Dec 12, 2025
@anttijk anttijk force-pushed the blocks-in-inline-no-anon branch from b74e582 to 33c10f2 Compare December 12, 2025 10:53
@anttijk anttijk force-pushed the blocks-in-inline-no-anon branch from 33c10f2 to ce2e203 Compare December 12, 2025 10:56
@anttijk anttijk removed the no-failure-limits Disable layout test failure limits on a pull-request label Dec 12, 2025
@anttijk anttijk marked this pull request as ready for review December 12, 2025 10:57
@anttijk anttijk requested a review from rniwa as a code owner December 12, 2025 10:57
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Dec 12, 2025
@anttijk anttijk removed the merging-blocked Applied to prevent a change from being merged label Dec 12, 2025
@anttijk anttijk force-pushed the blocks-in-inline-no-anon branch from ce2e203 to 95b8f1e Compare December 12, 2025 12:58
@anttijk anttijk added merge-queue Applied to send a pull request to merge-queue and removed merge-queue Applied to send a pull request to merge-queue labels Dec 12, 2025
https://bugs.webkit.org/show_bug.cgi?id=303999
rdar://166306432

Reviewed by Alan Baradlay.

We already don't wrap single blocks. Remove remaining anonymous block wrapping.

* LayoutTests/editing/selection/hit-test-continuation-margin-expected.html:
* LayoutTests/editing/selection/hit-test-continuation-margin.html:

This is a progression, our selection behavior now matches with or without the span.
Change the ref to be the spanless case.

* Source/WebCore/rendering/updating/RenderTreeBuilder.cpp:
(WebCore::RenderTreeBuilder::updateAfterDescendants):
* Source/WebCore/rendering/updating/RenderTreeBuilderInline.cpp:
(WebCore::RenderTreeBuilder::Inline::updateAfterDescendants): Deleted.
(WebCore::RenderTreeBuilder::Inline::wrapRunsOfBlocksInAnonymousBlock): Deleted.
* Source/WebCore/rendering/updating/RenderTreeBuilderInline.h:

Canonical link: https://commits.webkit.org/304357@main
@webkit-commit-queue
Copy link
Copy Markdown
Collaborator

Committed 304357@main (506bc07): https://commits.webkit.org/304357@main

Reviewed commits have been landed. Closing PR #55250 and removing active labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Layout and Rendering For bugs with layout and rendering of Web pages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants