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

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

Issue 2722763002: [LayoutNG] Switch NGBreakToken to being RefCounted. (Closed)
Patch Set: remove comments. Created 3 years, 10 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_box_fragment.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.cc b/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.cc
index 04d247bf3281667690c112ac0e96ca7e384183e1..e3f359a8585388db9867e1879797bcaa57f7c736 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.cc
@@ -16,12 +16,12 @@ NGPhysicalBoxFragment::NGPhysicalBoxFragment(
Vector<Persistent<NGFloatingObject>>& positioned_floats,
const WTF::Optional<NGLogicalOffset>& bfc_offset,
const NGMarginStrut& end_margin_strut,
- NGBreakToken* break_token)
+ RefPtr<NGBreakToken> break_token)
: NGPhysicalFragment(layout_object,
size,
overflow,
kFragmentBox,
- break_token),
+ std::move(break_token)),
positioned_floats_(positioned_floats),
bfc_offset_(bfc_offset),
end_margin_strut_(end_margin_strut) {

Powered by Google App Engine
This is Rietveld 408576698