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

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

Issue 2546353002: Move oof-descendants to NGPhysicalFragmentBase (Closed)
Patch Set: fix win build problem Created 4 years 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_text_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_text_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_text_fragment.h
index 367ede30e47835c823372debc6c104eefbbf4d9c..63b7868298c787b09ec002b3f0827ba41ba6d513 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_text_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_text_fragment.h
@@ -6,6 +6,7 @@
#define NGPhysicalTextFragment_h
#include "core/CoreExport.h"
+#include "core/layout/ng/ng_block_node.h"
#include "core/layout/ng/ng_physical_fragment_base.h"
#include "platform/LayoutUnit.h"
#include "platform/heap/Handle.h"
@@ -15,8 +16,16 @@ namespace blink {
class CORE_EXPORT NGPhysicalTextFragment final : public NGPhysicalFragmentBase {
public:
- NGPhysicalTextFragment(NGPhysicalSize size, NGPhysicalSize overflow)
- : NGPhysicalFragmentBase(size, overflow, kFragmentText) {}
+ NGPhysicalTextFragment(
+ NGPhysicalSize size,
+ NGPhysicalSize overflow,
+ HeapLinkedHashSet<WeakMember<NGBlockNode>>& out_of_flow_descendants,
+ Vector<NGStaticPosition> out_of_flow_positions)
+ : NGPhysicalFragmentBase(size,
+ overflow,
+ kFragmentText,
+ out_of_flow_descendants,
+ out_of_flow_positions) {}
DEFINE_INLINE_TRACE_AFTER_DISPATCH() {
NGPhysicalFragmentBase::traceAfterDispatch(visitor);

Powered by Google App Engine
This is Rietveld 408576698