-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Remove unused functions from LegacyInlineTextBox.cpp|h
#40290
Conversation
EWS run on current version of this PR (hash b9cc657) |
There was a problem hiding this 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(.
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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
...
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
to
ccb1f42
Compare
Committed 290114@main (ccb1f42): https://commits.webkit.org/290114@main Reviewed commits have been landed. Closing PR #40290 and removing active labels. |
ccb1f42
b9cc657
🧪 mac-wk1🧪 mac-intel-wk2