OLD | NEW |
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 NGFragmentBase_h | 5 #ifndef NGFragmentBase_h |
6 #define NGFragmentBase_h | 6 #define NGFragmentBase_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/ng_physical_fragment_base.h" | 9 #include "core/layout/ng/ng_physical_fragment_base.h" |
10 #include "core/layout/ng/ng_writing_mode.h" | 10 #include "core/layout/ng/ng_writing_mode.h" |
11 #include "core/layout/ng/ng_units.h" | |
12 #include "platform/LayoutUnit.h" | 11 #include "platform/LayoutUnit.h" |
13 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
14 #include "wtf/Vector.h" | |
15 | 13 |
16 namespace blink { | 14 namespace blink { |
17 | 15 |
18 class CORE_EXPORT NGFragmentBase : public GarbageCollected<NGFragmentBase> { | 16 class CORE_EXPORT NGFragmentBase : public GarbageCollected<NGFragmentBase> { |
19 public: | 17 public: |
20 NGWritingMode WritingMode() const { | 18 NGWritingMode WritingMode() const { |
21 return static_cast<NGWritingMode>(writing_mode_); | 19 return static_cast<NGWritingMode>(writing_mode_); |
22 } | 20 } |
23 TextDirection Direction() const { | 21 TextDirection Direction() const { |
24 return static_cast<TextDirection>(direction_); | 22 return static_cast<TextDirection>(direction_); |
(...skipping 29 matching lines...) Expand all Loading... |
54 | 52 |
55 Member<NGPhysicalFragmentBase> physical_fragment_; | 53 Member<NGPhysicalFragmentBase> physical_fragment_; |
56 | 54 |
57 unsigned writing_mode_ : 3; | 55 unsigned writing_mode_ : 3; |
58 unsigned direction_ : 1; | 56 unsigned direction_ : 1; |
59 }; | 57 }; |
60 | 58 |
61 } // namespace blink | 59 } // namespace blink |
62 | 60 |
63 #endif // NGFragmentBase_h | 61 #endif // NGFragmentBase_h |
OLD | NEW |