mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
In Sky most elements with a ShadowRoot will have rare data since they'll have elements inside them with more ShadowRoots which would increment the m_childShadowRootCount field, or they'll contain a <content> element which would increment m_descendantContentElementCount. Only leaf elements that don't contain either will not get one, and everyone pays the price for the rare data ptr. This should be mostly net netural for memory usage and it makes the code simpler. We can add it back later if we realize there's lots of leaf widgets. R=abarth@chromium.org Review URL: https://codereview.chromium.org/862183003