Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc

Issue 2642823008: Introduce NGFloatingObject (Closed)
Patch Set: Update TestExpectations Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc
index 30d3c881a08998ae2d42126ecdf1d5d813545cb3..f08f1c5b0d3030a2c287f75f85cf1da3a18f786d 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.cc
@@ -16,14 +16,18 @@ NGPhysicalFragment::NGPhysicalFragment(
NGFragmentType type,
HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants,
Vector<NGStaticPosition> out_of_flow_positions,
+ HeapVector<Member<NGFloatingObject>>& unpositioned_floats,
+ HeapVector<Member<NGFloatingObject>>& positioned_floats,
NGBreakToken* break_token)
: size_(size),
overflow_(overflow),
break_token_(break_token),
type_(type),
- has_been_placed_(false) {
+ is_placed_(false) {
out_of_flow_descendants_.swap(out_of_flow_descendants);
out_of_flow_positions_.swap(out_of_flow_positions);
+ unpositioned_floats_.swap(unpositioned_floats);
+ positioned_floats_.swap(positioned_floats);
}
DEFINE_TRACE(NGPhysicalFragment) {
@@ -43,6 +47,8 @@ void NGPhysicalFragment::finalizeGarbageCollectedObject() {
DEFINE_TRACE_AFTER_DISPATCH(NGPhysicalFragment) {
visitor->trace(out_of_flow_descendants_);
visitor->trace(break_token_);
+ visitor->trace(unpositioned_floats_);
+ visitor->trace(positioned_floats_);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698