DescriptionLet padding change always trigger layout and full paint invalidation
Previously we when padding changed, we marked for layout only, and
during paint invalidation we checked for content box change if anything
depends on the content box. This required us to save the previous
content box for box-sizing:border-box style. Based on stat on 10k
top sites, 12% of all LayoutBoxes have box-sizing:border-box style.
With this CL we will save the previous content box when any background
layer uses it. Less than 0.36% of LayoutBoxes need it.
This reduces a lot of hash map accesses during paint invalidation and
simplifies code, with a drawback that we'll fully invalidate on any
padding change even if it doesn't change visual result (which seems
special).
BUG=685179
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2701103003
Cr-Commit-Position: refs/heads/master@{#452282}
Committed: https://chromium.googlesource.com/chromium/src/+/aaea701d3ab3168a16e45bc5ab59d181a8c871bb
Patch Set 1 #Patch Set 2 : Rebase #
Dependent Patchsets: Messages
Total messages: 25 (19 generated)
|