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 NGText_h | 5 #ifndef NGText_h |
6 #define NGText_h | 6 #define NGText_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/ng_fragment_base.h" | 9 #include "core/layout/ng/ng_fragment_base.h" |
10 #include "platform/LayoutUnit.h" | 10 #include "platform/LayoutUnit.h" |
11 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class CORE_EXPORT NGText final : public NGFragmentBase { | 15 class CORE_EXPORT NGText final : public NGFragmentBase { |
16 public: | 16 public: |
17 NGText(LayoutUnit inlineSize, | 17 NGText(LayoutUnit inlineSize, |
18 LayoutUnit blockSize, | 18 LayoutUnit blockSize, |
19 LayoutUnit inlineOverflow, | 19 LayoutUnit inlineOverflow, |
20 LayoutUnit blockOverflow) | 20 LayoutUnit blockOverflow, |
21 : NGFragmentBase(inlineSize, blockSize, inlineOverflow, blockOverflow) { | 21 NGWritingMode writingMode, |
22 m_isText = true; | 22 NGDirection direction) |
23 } | 23 : NGFragmentBase(inlineSize, |
| 24 blockSize, |
| 25 inlineOverflow, |
| 26 blockOverflow, |
| 27 writingMode, |
| 28 direction, |
| 29 FragmentText) {} |
24 | 30 |
25 const String text() const { return String(); } | 31 const String text() const { return String(); } |
26 | 32 |
27 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { | 33 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { |
28 NGFragmentBase::traceAfterDispatch(visitor); | 34 NGFragmentBase::traceAfterDispatch(visitor); |
29 } | 35 } |
30 }; | 36 }; |
31 | 37 |
32 } // namespace blink | 38 } // namespace blink |
33 | 39 |
34 #endif // NGText_h | 40 #endif // NGText_h |
OLD | NEW |