Compute multi-line lazily for inline painting
Computing whether an inline block spans multiple lines is more expensive than expected thus causing a small paint performance regression for both legacy layout and LayoutNG. This patch moves the computation to use-time thereby avoiding it when cached drawings are used or paint isn't needed. Bug: 714962 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng;luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I97380b2e304c3c3293514ecf118fffdf6f9b9292 Reviewed-on: https://chromium-review.googlesource.com/1170310Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#582501}
Showing
Please register or sign in to comment