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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_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_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 434d0b2f48b3e45c1361eccb2112d22258927f67..5bf322177052f7cfee0579fa7e6d74baba3596ec 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
@@ -14,11 +14,11 @@ NGPhysicalFragment::NGPhysicalFragment(LayoutObject* layout_object,
NGPhysicalSize size,
NGPhysicalSize overflow,
NGFragmentType type,
- NGBreakToken* break_token)
+ RefPtr<NGBreakToken> break_token)
: layout_object_(layout_object),
size_(size),
overflow_(overflow),
- break_token_(break_token),
+ break_token_(std::move(break_token)),
type_(type),
is_placed_(false) {}

Powered by Google App Engine
This is Rietveld 408576698