[LayoutNG] Move kOldLayoutRoot out of NGPhysicalFragment's box types
We have a special value kOldLayoutRoot in NGPhysicalFragment::NGBoxType, which indicates that the box fragment is the root of new layout. However, this overwrites the actual box type of the fragment. For example, when we have a box that's both an inline block and an old layout root, we lose the inline block box type information when checking NGPhysicalFragment::BoxType(). This patch moves the old layout root information out from NGBoxType as a separate bit flag in NGPhysicalFragment (and also NGFragmentBuilder), so that we can get rid of the issue. Bug: Change-Id: Icb98481ccafa6cb3226a01c6dab85c17dac22d96 Reviewed-on: https://chromium-review.googlesource.com/818630 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Reviewed-by:
Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#523306}
Showing
Please register or sign in to comment