Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused functions from LegacyInlineTextBox.cpp|h #40290

Conversation

Ahmad-S792
Copy link
Contributor

@Ahmad-S792 Ahmad-S792 commented Feb 8, 2025

ccb1f42

Remove unused functions from `LegacyInlineTextBox.cpp|h`
https://bugs.webkit.org/show_bug.cgi?id=287334
rdar://144450111

Reviewed by Alan Baradlay.

This patch just removes unused functions and continue on path
of Legacy Layout clean-up.

* Source/WebCore/rendering/LegacyInlineTextBox.cpp:
(WebCore::LegacyInlineTextBox::logicalOverflowRect const): Deleted.
* Source/WebCore/rendering/LegacyInlineTextBox.h:
(WebCore::LegacyInlineTextBox::logicalTopVisualOverflow const): Deleted.
(WebCore::LegacyInlineTextBox::logicalBottomVisualOverflow const): Deleted.
(WebCore::LegacyInlineTextBox::logicalLeftVisualOverflow const): Deleted.
(WebCore::LegacyInlineTextBox::logicalRightVisualOverflow const): Deleted.

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

b9cc657

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
✅ 🛠 🧪 merge ✅ 🧪 vision-wk2 🧪 mac-intel-wk2 ✅ 🛠 playstation
✅ 🛠 tv ✅ 🛠 mac-safer-cpp
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

@Ahmad-S792 Ahmad-S792 self-assigned this Feb 8, 2025
@Ahmad-S792 Ahmad-S792 added the Layout and Rendering For bugs with layout and rendering of Web pages. label Feb 8, 2025
Copy link
Contributor

@alanbaradlay alanbaradlay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should put very little effort into cleaning up legacy at this point as Antti is going to make all of it go away in one go (unless there's some additional benefit(.

@Ahmad-S792 Ahmad-S792 added the safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks label Feb 8, 2025
@Ahmad-S792
Copy link
Contributor Author

We should put very little effort into cleaning up legacy at this point as Antti is going to make all of it go away in one go (unless there's some additional benefit(.

I just stumbled upon them so I thought why not. Good to know, it will soon go away in one full swoop. I will avoid touching it now.

{
if (knownToHaveNoOverflow() || !gTextBoxesWithOverflow)
return enclosingIntRect(logicalFrameRect());
return gTextBoxesWithOverflow->get(this);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setLogicalOverflowRect, gTextBoxesWithOverflow can all be removed too it seems.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'setLogicalOverflowRect' is used in LegacyInlineFlowBox.cpp, while 'gTextBoxesWithOverflow' is used in other areas. I would let Antti clean-up in one swoop.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'setLogicalOverflowRect' is used in LegacyInlineFlowBox.cpp

That call site does nothing, since nothing reads from logicalOverflowRect(). Ditto for gTextBoxesWithOverflow...

@Ahmad-S792 Ahmad-S792 added merge-queue Applied to send a pull request to merge-queue and removed safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks labels Feb 8, 2025
https://bugs.webkit.org/show_bug.cgi?id=287334
rdar://144450111

Reviewed by Alan Baradlay.

This patch just removes unused functions and continue on path
of Legacy Layout clean-up.

* Source/WebCore/rendering/LegacyInlineTextBox.cpp:
(WebCore::LegacyInlineTextBox::logicalOverflowRect const): Deleted.
* Source/WebCore/rendering/LegacyInlineTextBox.h:
(WebCore::LegacyInlineTextBox::logicalTopVisualOverflow const): Deleted.
(WebCore::LegacyInlineTextBox::logicalBottomVisualOverflow const): Deleted.
(WebCore::LegacyInlineTextBox::logicalLeftVisualOverflow const): Deleted.
(WebCore::LegacyInlineTextBox::logicalRightVisualOverflow const): Deleted.

Canonical link: https://commits.webkit.org/290114@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Remove-unused-functions-from-LegacyInlineTextBox-cpp branch from b9cc657 to ccb1f42 Compare February 9, 2025 12:10
@webkit-commit-queue
Copy link
Collaborator

Committed 290114@main (ccb1f42): https://commits.webkit.org/290114@main

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

@webkit-commit-queue webkit-commit-queue merged commit ccb1f42 into WebKit:main Feb 9, 2025
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Feb 9, 2025
@Ahmad-S792 Ahmad-S792 deleted the eng/Remove-unused-functions-from-LegacyInlineTextBox-cpp branch February 13, 2025 13:03
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