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

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

Issue 2764753007: [LayoutNG] Add NGLineBoxFragment (Closed)
Patch Set: Rebase again as other CLs landed faster Created 3 years, 9 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_line_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_line_box_fragment.h
similarity index 50%
copy from third_party/WebKit/Source/core/layout/ng/ng_box_fragment.h
copy to third_party/WebKit/Source/core/layout/ng/ng_line_box_fragment.h
index 805c08c9046c9ccd43e9c341f4c158c9f3d6d944..733ba7402fa25c0c7c9a1f85e25ce8ab7a3659b9 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_line_box_fragment.h
@@ -1,34 +1,30 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
+// Copyright 2017 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
+#ifndef NGLineBoxFragment_h
+#define NGLineBoxFragment_h
#include "core/CoreExport.h"
#include "core/layout/ng/ng_fragment.h"
-#include "core/layout/ng/ng_physical_box_fragment.h"
+#include "core/layout/ng/ng_physical_line_box_fragment.h"
#include "core/layout/ng/ng_writing_mode.h"
namespace blink {
-class CORE_EXPORT NGBoxFragment final : public NGFragment {
+class CORE_EXPORT NGLineBoxFragment final : public NGFragment {
public:
- NGBoxFragment(NGWritingMode writing_mode,
- const NGPhysicalBoxFragment* physical_fragment)
+ NGLineBoxFragment(NGWritingMode writing_mode,
+ const NGPhysicalLineBoxFragment* physical_fragment)
: NGFragment(writing_mode, physical_fragment) {}
-
- const WTF::Optional<NGLogicalOffset>& BfcOffset() const;
-
- const NGMarginStrut& EndMarginStrut() const;
};
-DEFINE_TYPE_CASTS(NGBoxFragment,
+DEFINE_TYPE_CASTS(NGLineBoxFragment,
NGFragment,
fragment,
- fragment->Type() == NGPhysicalFragment::kFragmentBox,
- fragment.Type() == NGPhysicalFragment::kFragmentBox);
+ fragment->Type() == NGPhysicalFragment::kFragmentLineBox,
+ fragment.Type() == NGPhysicalFragment::kFragmentLineBox);
} // namespace blink
-#endif // NGBoxFragment_h
+#endif // NGLineBoxFragment_h

Powered by Google App Engine
This is Rietveld 408576698