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

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

Issue 2612103004: [ng_layout] Rename NGFragmentBase,NGFragment,NGPhysicalFragment (Closed)
Patch Set: CR: rename ifdef guards Created 3 years, 11 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_box_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.h
new file mode 100644
index 0000000000000000000000000000000000000000..36fbaf3e654b663f2aabf756c61817560d633ad2
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.h
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NGBoxFragment_h
+#define NGBoxFragment_h
+
+#include "core/CoreExport.h"
+#include "core/layout/ng/ng_units.h"
+#include "core/layout/ng/ng_writing_mode.h"
+#include "core/layout/ng/ng_fragment.h"
+#include "core/layout/ng/ng_physical_box_fragment.h"
+
+namespace blink {
+
+class CORE_EXPORT NGBoxFragment final : public NGFragment {
+ public:
+ NGBoxFragment(NGWritingMode writing_mode,
+ TextDirection direction,
+ NGPhysicalBoxFragment* physical_fragment)
+ : NGFragment(writing_mode, direction, physical_fragment) {}
+
+ NGMarginStrut MarginStrut() const;
+};
+
+DEFINE_TYPE_CASTS(NGBoxFragment,
+ NGFragment,
+ fragment,
+ fragment->Type() == NGPhysicalFragment::kFragmentBox,
+ fragment.Type() == NGPhysicalFragment::kFragmentBox);
+
+} // namespace blink
+
+#endif // NGBoxFragment_h

Powered by Google App Engine
This is Rietveld 408576698