Optimize visual overflow computation code by devirtualizing some methods.
Before this patch, ComputeVisualOverflow() was virtual, and so was AddVisualOverflowFromChildren(), which was called by ComputeVisualOverflow(). This pattern existed to share a bit more code with LayoutBlock other than the code to collect rects from children. This CL instead inlines the duplicated code in a few places and de-virtualizes AddVisualOverflowFromChildren. Bug: 894244 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: Ic9e36c0271ac6d88ee660e9113e1a2b7db8e0148 Reviewed-on: https://chromium-review.googlesource.com/c/1281234Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#600156}
Showing
Please register or sign in to comment