[CI] Refactoring BlockPainter and BlockFlowPainter
Previously, BlockPainter's PaintObject method:
1) was rather uncommented, particularly as it related to its correspondence
to the W3C "Appendix E" spec for stacking context painting (at
https://www.w3.org/TR/CSS21/zindex.html).
2) was a bit convoluted, in the parts that dealt with painting LayoutBlockFlow
objects. BlockPainter handled painting most parts of painting both
LayoutBlocks and LayoutBlockFlows, except for in two places. In those
places, a BlockFlowPainter was constructed and called, and then
at one point in BlockFlowPainter::PaintContents, a BlockPainter
was constructed and PaintContents called on that. Functional but confusing.
With this CL, comments are added to link BlockPainter to Appendix E, and
BlockFlowPainter is eliminated. That code is folded back into BlockPainter,
inline where it was called.
Bug: 873387
Change-Id: Idc041eacbcfadd1df1a610f81a2a98de024b7d49
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel
Reviewed-on: https://chromium-review.googlesource.com/1175226
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Reviewed-by:
Chris Harrelson <chrishtr@chromium.org>
Reviewed-by:
Philip Rogers <pdr@chromium.org>
Reviewed-by:
vmpstr <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585366}
Showing
Please register or sign in to comment