-
wangxianzhu authored
Pros: - Avoid tricky DisplayItemClientWrapper; - We can cache some data in client instead of hashmaps in PaintController: * debugName; * invalidation flags; * paint invalidation rect. The HashMaps may be a reason of performance issues. - We can add other callbacks when needed. Cons: - Increase object size of some sub-classes by 1 pointer. However, based on haraken@'s presentation [1] on blinkon 5, "sizeof(Node) and sizeof(LayoutObject) don’t really matter". [1] https://docs.google.com/presentation/d/1_LRxXp30j60npShHSRVit0B5tLOS4TLiZ68gQ8nFLsM/edit#slide=id.g72a3d66d2_1_319 Review URL: https://codereview.chromium.org/1497873002 Cr-Commit-Position: refs/heads/master@{#363822}
cfdee1dd