|
Deprecate NGPhysicalConstraintSpace
This patch deprecates NGPhysicalConstraintSpace and changes the LayoutNG code to use NGConstraintSpace and its builder everywhere instead.
List of changes:
1) NGConstraintSpaceBuilder::ToConstraintSpace returns NGConstraintSpace
2) NGPhysicalConstraintSpace is removed
3) Introduced NGExclusions to store the list of exclusions and last left/right floating exclusions.
4) NGConstraintSpace constructor is moved to private, so NGConstraintSpace can be only created via its builder.
5) Switching between inline/block happens in NGConstraintSpaceBuilder::ToConstraintSpace
6) Exclusions is shared with shared_ptr. A new exclusions list is created if there is no parent_space or when a new FC is established.
BUG= 635619
Committed: https://crrev.com/3d12834fa3981ef5f09b4c207c7cc17c56f5069f
Cr-Commit-Position: refs/heads/master@{#435712}
Total comments: 12
Total comments: 4
Total comments: 8
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+339 lines, -472 lines) |
Patch |
|
M |
third_party/WebKit/LayoutTests/TestExpectations
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/BUILD.gn
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_absolute_utils_test.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+13 lines, -12 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+4 lines, -13 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+13 lines, -13 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_block_node.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+11 lines, -10 lines |
2 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+70 lines, -42 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_constraint_space.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+39 lines, -75 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h
|
View
|
1
2
3
|
4 chunks |
+13 lines, -6 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+65 lines, -21 lines |
2 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_constraint_space_test.cc
|
View
|
1
2
3
4
5
6
7
|
9 chunks |
+34 lines, -103 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_fragment_base.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc
|
View
|
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -6 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -90 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -48 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_units.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/ng/ng_units.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/tests/NGInlineLayoutTest.cpp
|
View
|
|
1 chunk |
+6 lines, -9 lines |
0 comments
|
Download
|
Total messages: 57 (39 generated)
|