Chromium Code Reviews
DescriptionMove LayoutBoxModelObject's PaintLayer member to rare paint data
This patch removes the PaintLayer member from LayoutBoxModelObject and
puts it in RarePaintData. This will save one pointer of memory and in
the common case RarePaintData will already exist.
Two minor cleanups have been included:
1) LayoutBoxModelObject::DestroyLayer has been changed to only get called
when a layer exists.
2) LayoutBoxModelObject::CreateLayer has been refactored to work more like
DestroyLayer. Instead of doing insert/remove logic in this function, the
caller is now responsible (InsertOnlyThisLayerAfterStyleChange).
BUG=700452
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2811023002
Cr-Commit-Position: refs/heads/master@{#463888}
Committed: https://chromium.googlesource.com/chromium/src/+/782b87888ae14a5531d8c248fb2c3337dc638e04
Patch Set 1 #
Total comments: 4
Patch Set 2 : Minor cleanup #
Messages
Total messages: 21 (13 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||