|
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}
Committed: https://chromium.googlesource.com/chromium/src/+/b91d302ec822f5a1900e2e0479d98741c0fb6d73
Total comments: 8
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+132 lines, -171 lines) |
Patch |
|
M |
third_party/WebKit/LayoutTests/TestExpectations
|
View
|
1
2
3
|
5 chunks |
+12 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
|
View
|
1
2
|
4 chunks |
+17 lines, -10 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc
|
View
|
|
4 chunks |
+0 lines, -124 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc
|
View
|
1
2
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc
|
View
|
1
|
8 chunks |
+11 lines, -8 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_floating_object.h
|
View
|
1
|
4 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_floats_utils.cc
|
View
|
1
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc
|
View
|
1
|
3 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_space_utils.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_space_utils.cc
|
View
|
1
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/core/layout/ng/ng_space_utils_test.cc
|
View
|
1
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
Total messages: 51 (36 generated)
|