CS of out-of-flow positioned objects should have is_new_fc == true
List of changes:
1) IsNewFormattingContextForInFlowBlockLevelChild returns true for
out-of-flow positioned child's style.
2) Add is_parent_new_fc_ to NGConstraintSpaceBuilder.
We need need this bit to determine whether we need to pass exclusions
to child's CS. Consider an example:
<div id="container" style="width/height: 200px;">
<float1><float-child></float1>
<float2></float2>
</div>
float1 and float2 CSs will have available size == 200x200 and that
size will be used to search for layout opportunities. So instead of
passing arround the list of exclusions this patch introduces
is_parent_new_fc that tells space_builder whether we need to pass
exclusions to a child's CS.
3) Delete test lines that check NGLayoutOpportunityTree.
That's because we can't access it anymore and we check its correctness
in other places.
BUG=635619
Review-Url: https://codereview.chromium.org/2770483002
Cr-Commit-Position: refs/heads/master@{#459697}
15 files changed