-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Clean up RenderBox overflow methods #52441
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
Clean up RenderBox overflow methods #52441
Conversation
|
EWS run on previous version of this PR (hash ab5373a)
|
nt1m
left a comment
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.
No new tests (OOPS!). will probably trip up merge-queue
Source/WebCore/rendering/RenderBox.h
Outdated
| RecomputeFloats = 1 << 0, | ||
| }; | ||
| virtual void addOverflowFromInFlowChildren(OptionSet<ComputeOverflowOptions> = { }); | ||
| void addOverflowFromChild(const RenderBox& child, OptionSet<ComputeOverflowOptions> = { }); |
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.
Alan points out these are not always children, so need to rename this to something else that's more correct.
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.
Renamed to addOverflowFromContainedBox
ab5373a to
d857985
Compare
|
EWS run on current version of this PR (hash d857985) |
https://bugs.webkit.org/show_bug.cgi?id=300835 rdar://162722242 Reviewed by Alan Baradlay. The various computeOverflow/addOverflow methods are kinda tangled up. Clean it up. - Shifts method declarations to the correct superclass/subclass level (adjusting names as necessary), and in the right section of the .h file. - Simplifies parameters and sets us up for additional options in the future. - Encapsulates memory management of m_overflow. * Source/WebCore/rendering/RenderBlock.cpp: (WebCore::RenderBlock::computeOverflow): (WebCore::RenderBlock::addOverflowFromOutOfFlowBoxes): (WebCore::RenderBlock::addVisualOverflowFromTheme): (WebCore::RenderBlock::simplifiedLayout): (WebCore::RenderBlock::addOverflowFromChildren): Deleted. (WebCore::RenderBlock::addOverflowFromBlockChildren): Deleted. * Source/WebCore/rendering/RenderBlock.h: (WebCore::RenderBlock::computeOverflow): (WebCore::RenderBlock::addOverflowFromInlineChildren): Deleted. * Source/WebCore/rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeOverflow): (WebCore::RenderBlockFlow::addOverflowFromInFlowChildren): * Source/WebCore/rendering/RenderBlockFlow.h: (WebCore::RenderBlockFlow::computeOverflow): (WebCore::RenderBlockFlow::addOverflowFromInFlowChildren): * Source/WebCore/rendering/RenderBox.cpp: (WebCore::RenderBox::addOverflowFromInFlowChildren): (WebCore::RenderBox::addOverflowFromContainedBox): (WebCore::RenderBox::addOverflowWithRendererOffset): (WebCore::RenderBox::addVisualOverflow): (WebCore::RenderBox::percentageLogicalHeightIsResolvable const): (WebCore::RenderBox::hasUnsplittableScrollingOverflow const): (WebCore::RenderBox::isUnsplittableForPagination const): (WebCore::RenderBox::addOverflowFromInFlowChildOrAbsolutePositionedDescendant): Deleted. * Source/WebCore/rendering/RenderBox.h: * Source/WebCore/rendering/RenderGrid.cpp: (WebCore::RenderGrid::contentOverflowRect const): (WebCore::RenderGrid::computeOverflow): Deleted. * Source/WebCore/rendering/RenderGrid.h: * Source/WebCore/rendering/RenderMultiColumnSet.cpp: (WebCore::RenderMultiColumnSet::addOverflowFromInFlowChildren): (WebCore::RenderMultiColumnSet::addOverflowFromChildren): Deleted. * Source/WebCore/rendering/RenderMultiColumnSet.h: * Source/WebCore/rendering/RenderTable.cpp: (WebCore::RenderTable::addOverflowFromInFlowChildren): (WebCore::RenderTable::addOverflowFromChildren): Deleted. * Source/WebCore/rendering/RenderTable.h: (WebCore::RenderTable::addOverflowFromInFlowChildren): * Source/WebCore/rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::computeOverflowFromCells): * Source/WebCore/rendering/svg/RenderSVGBlock.cpp: (WebCore::RenderSVGBlock::computeOverflow): * Source/WebCore/rendering/svg/RenderSVGBlock.h: Canonical link: https://commits.webkit.org/301714@main
d857985 to
dd50ed7
Compare
|
Committed 301714@main (dd50ed7): https://commits.webkit.org/301714@main Reviewed commits have been landed. Closing PR #52441 and removing active labels. |
🛠 tv-sim
dd50ed7
d857985
🧪 win-tests