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

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

Issue 2960233002: [LayoutNG] Move bfc_offset_, end_margin_sturt_ to NGLayoutResult (Closed)
Patch Set: OOF -> OutOfFlow Created 3 years, 6 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_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
index e1fdb9f7ec7f5594b4e84549f0792ace706752a9..fd44298f0369ba1fd390c781d1377c13c652957a 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h
@@ -20,6 +20,10 @@ class CORE_EXPORT NGFragment {
STACK_ALLOCATED();
public:
+ NGFragment(NGWritingMode writing_mode,
+ const NGPhysicalFragment* physical_fragment)
+ : physical_fragment_(physical_fragment), writing_mode_(writing_mode) {}
+
NGWritingMode WritingMode() const {
return static_cast<NGWritingMode>(writing_mode_);
}
@@ -39,10 +43,6 @@ class CORE_EXPORT NGFragment {
NGPhysicalFragment::NGFragmentType Type() const;
protected:
- NGFragment(NGWritingMode writing_mode,
- const NGPhysicalFragment* physical_fragment)
- : physical_fragment_(physical_fragment), writing_mode_(writing_mode) {}
-
const NGPhysicalFragment* physical_fragment_;
unsigned writing_mode_ : 3;

Powered by Google App Engine
This is Rietveld 408576698