Skip to content

Conversation

fantasai
Copy link
Contributor

@fantasai fantasai commented Jan 1, 2025

7ec5fd9

Convert coordinates properly for floats in writing-mode: sideways-lr
https://bugs.webkit.org/show_bug.cgi?id=285276
rdar://142227732

Reviewed by Alan Baradlay.

Updates preparePlacedFloats to convert external floats to logical coordinates,
and toMarginAndBorderBoxVisualRect to convert logical coordinates out to
RenderBox coordinates in sideways-lr mode.

* LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/sideways-inline-003-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/sideways-inline-003-ref.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/sideways-inline-003.html: Added.
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::toMarginAndBorderBoxVisualRect):
(WebCore::LayoutIntegration::LineLayout::updateRenderTreePositions):
(WebCore::LayoutIntegration::LineLayout::preparePlacedFloats):

Canonical link: https://commits.webkit.org/288382@main

5e39ba3

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style 🛠 ios 🛠 mac 🛠 wpe 🛠 win
✅ 🧪 bindings 🛠 ios-sim 🛠 mac-AS-debug 🧪 wpe-wk2 🧪 win-tests
✅ 🧪 webkitperl 🧪 ios-wk2 🧪 api-mac 🧪 api-wpe
🧪 ios-wk2-wpt 🧪 mac-wk1 🛠 wpe-cairo
🧪 api-ios 🧪 mac-wk2 🛠 gtk
🛠 vision 🧪 mac-AS-debug-wk2 🧪 gtk-wk2
🛠 vision-sim 🧪 mac-wk2-stress 🧪 api-gtk
⏳ 🧪 vision-wk2 🧪 mac-intel-wk2 🛠 playstation
✅ 🛠 🧪 unsafe-merge 🛠 tv 🛠 mac-safer-cpp
🛠 tv-sim
🛠 watch
🛠 watch-sim

@fantasai fantasai added the CSS Cascading Style Sheets implementation label Jan 1, 2025
@fantasai fantasai self-assigned this Jan 1, 2025
@fantasai fantasai requested a review from alanbaradlay January 1, 2025 08:50
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jan 1, 2025
@fantasai fantasai force-pushed the sideways-inline-floats branch from d1fc0f7 to 259dbaf Compare January 1, 2025 19:02
@fantasai fantasai force-pushed the sideways-inline-floats branch from 259dbaf to 4f4ad94 Compare January 2, 2025 15:24
@fantasai fantasai force-pushed the sideways-inline-floats branch from 4f4ad94 to 21bf4db Compare January 2, 2025 16:21
@fantasai fantasai force-pushed the sideways-inline-floats branch from 21bf4db to 4eda029 Compare January 2, 2025 22:40
@fantasai fantasai force-pushed the sideways-inline-floats branch from 4eda029 to 5e39ba3 Compare January 2, 2025 22:49
@fantasai fantasai added unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing and removed merging-blocked Applied to prevent a change from being merged labels Jan 2, 2025
https://bugs.webkit.org/show_bug.cgi?id=285276
rdar://142227732

Reviewed by Alan Baradlay.

Updates preparePlacedFloats to convert external floats to logical coordinates,
and toMarginAndBorderBoxVisualRect to convert logical coordinates out to
RenderBox coordinates in sideways-lr mode.

* LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/sideways-inline-003-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/sideways-inline-003-ref.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-writing-modes/sideways-inline-003.html: Added.
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::toMarginAndBorderBoxVisualRect):
(WebCore::LayoutIntegration::LineLayout::updateRenderTreePositions):
(WebCore::LayoutIntegration::LineLayout::preparePlacedFloats):

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

Committed 288382@main (7ec5fd9): https://commits.webkit.org/288382@main

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

@webkit-commit-queue webkit-commit-queue merged commit 7ec5fd9 into WebKit:main Jan 2, 2025
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CSS Cascading Style Sheets implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants