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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NGBoxFragment_h 5 #ifndef NGBoxFragment_h
6 #define NGBoxFragment_h 6 #define NGBoxFragment_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_fragment.h" 9 #include "core/layout/ng/ng_fragment.h"
10 #include "core/layout/ng/ng_physical_box_fragment.h" 10 #include "core/layout/ng/ng_physical_box_fragment.h"
11 #include "core/layout/ng/ng_writing_mode.h" 11 #include "core/layout/ng/ng_writing_mode.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class CORE_EXPORT NGBoxFragment final : public NGFragment { 15 class CORE_EXPORT NGBoxFragment final : public NGFragment {
16 public: 16 public:
17 NGBoxFragment(NGWritingMode writing_mode, 17 NGBoxFragment(NGWritingMode writing_mode,
18 const NGPhysicalBoxFragment* physical_fragment) 18 const NGPhysicalBoxFragment* physical_fragment)
19 : NGFragment(writing_mode, physical_fragment) {} 19 : NGFragment(writing_mode, physical_fragment) {}
20 20
21 // Returns the total size, including the contents outside of the border-box.
22 LayoutUnit InlineOverflow() const;
23 LayoutUnit BlockOverflow() const;
24
21 const WTF::Optional<NGLogicalOffset>& BfcOffset() const; 25 const WTF::Optional<NGLogicalOffset>& BfcOffset() const;
22 26
23 const NGMarginStrut& EndMarginStrut() const; 27 const NGMarginStrut& EndMarginStrut() const;
24 }; 28 };
25 29
26 DEFINE_TYPE_CASTS(NGBoxFragment, 30 DEFINE_TYPE_CASTS(NGBoxFragment,
27 NGFragment, 31 NGFragment,
28 fragment, 32 fragment,
29 fragment->Type() == NGPhysicalFragment::kFragmentBox, 33 fragment->Type() == NGPhysicalFragment::kFragmentBox,
30 fragment.Type() == NGPhysicalFragment::kFragmentBox); 34 fragment.Type() == NGPhysicalFragment::kFragmentBox);
31 35
32 } // namespace blink 36 } // namespace blink
33 37
34 #endif // NGBoxFragment_h 38 #endif // NGBoxFragment_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/BUILD.gn ('k') | third_party/WebKit/Source/core/layout/ng/ng_box_fragment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698