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

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

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_physical_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
index 1c04df1ff0649381d03749ccf171d47703229492..f602483d50aff8f494a9d5aa782b1de2ed8082b2 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h
@@ -12,25 +12,39 @@
namespace blink {
+class NGBox;
+
class CORE_EXPORT NGPhysicalFragment final : public NGPhysicalFragmentBase {
public:
// This modifies the passed-in children vector.
- NGPhysicalFragment(NGPhysicalSize size,
- NGPhysicalSize overflow,
- HeapVector<Member<const NGPhysicalFragmentBase>>& children,
- NGMarginStrut margin_strut);
+ NGPhysicalFragment(
+ NGPhysicalSize size,
+ NGPhysicalSize overflow,
+ HeapVector<Member<const NGPhysicalFragmentBase>>& children,
+ HeapLinkedHashSet<WeakMember<NGBox>>& out_of_flow_descendants,
+ Vector<NGLogicalOffset> out_of_flow_offsets,
+ NGMarginStrut margin_strut);
const HeapVector<Member<const NGPhysicalFragmentBase>>& Children() const {
return children_;
}
+ const HeapLinkedHashSet<WeakMember<NGBox>>& OutOfFlowDescendants() const {
+ return out_of_flow_descendants_;
+ }
+
+ const Vector<NGLogicalOffset>& OutOfFlowOffsets() const {
+ return out_of_flow_offsets_;
+ }
+
NGMarginStrut MarginStrut() const { return margin_strut_; }
DECLARE_TRACE_AFTER_DISPATCH();
private:
HeapVector<Member<const NGPhysicalFragmentBase>> children_;
-
+ HeapLinkedHashSet<WeakMember<NGBox>> out_of_flow_descendants_;
+ Vector<NGLogicalOffset> out_of_flow_offsets_;
NGMarginStrut margin_strut_;
};

Powered by Google App Engine
This is Rietveld 408576698