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

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

Issue 2521833002: [LayoutNG] Add out-of-flow descendants and offsets to NGPhysicalFragment (Closed)
Patch Set: Fix windows build Created 4 years, 1 month 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_fragment_builder.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
index dce8f17fc248a77e4abdcff9649d4a991cf40144..fc9bcb641353d25fd46471e3ca7ced59ed85eb0c 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.cc
@@ -3,6 +3,8 @@
// found in the LICENSE file.
#include "core/layout/ng/ng_fragment_builder.h"
+#include "core/layout/ng/ng_box.h"
+#include "core/style/ComputedStyle.h"
namespace blink {
@@ -79,9 +81,14 @@ NGPhysicalFragment* NGFragmentBuilder::ToFragment() {
writing_mode_, direction_, physical_size, child->Size()));
children.append(child);
}
- return new NGPhysicalFragment(physical_size,
- overflow_.ConvertToPhysical(writing_mode_),
- children, margin_strut_);
+ return new NGPhysicalFragment(
+ physical_size, overflow_.ConvertToPhysical(writing_mode_), children,
+ out_of_flow_descendants_, out_of_flow_offsets_, margin_strut_);
+}
+
+DEFINE_TRACE(NGFragmentBuilder) {
+ visitor->trace(children_);
+ visitor->trace(out_of_flow_descendants_);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698