Chromium Code Reviews
DescriptionStore local border box property cache outside ObjectPaintProperties
This patch moves the local border box property cache out of
ObjectPaintProperties so it can be managed separately. Data in
crbug.com/700452 [1] shows that LocalBorderBoxProperties is needed
much more than ObjectPaintProperties so this will save memory.
The big change here is to move LocalBorderBoxProperties from
ObjectPaintProperties to LayoutObject::RarePaintData. Because
the contents properties cache depends on the local border box
properties, it has also been moved to RarePaintData.
This patch reduces memory on youtube.com by 106.7KB [1].
[1] https://docs.google.com/spreadsheets/d/1IC1JI0sX7QsR9FmA4G1-F9E_c3xRKDNoV3SkDKQ822U
BUG=700452
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2782343002
Cr-Commit-Position: refs/heads/master@{#461340}
Committed: https://chromium.googlesource.com/chromium/src/+/4b973463f5203e58f12e363703026d6acb808026
Patch Set 1 #
Total comments: 1
Patch Set 2 : Rebase #
Total comments: 1
Patch Set 3 : Rebase #Patch Set 4 : Address reviewer comments: use default unique_ptr ctor #Patch Set 5 : Rebase #Messages
Total messages: 20 (16 generated)
|