| // 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 NGText_h |
| #define NGText_h |
| |
| #include "core/CoreExport.h" |
| #include "core/layout/ng/ng_fragment_base.h" |
| #include "platform/LayoutUnit.h" |
| #include "wtf/text/WTFString.h" |
| |
| namespace blink { |
| |
| class CORE_EXPORT NGText final : public NGFragmentBase { |
| public: |
| NGText(LayoutUnit inlineSize, |
| LayoutUnit blockSize, |
| LayoutUnit inlineOverflow, |
| LayoutUnit blockOverflow) |
| : NGFragmentBase(inlineSize, blockSize, inlineOverflow, blockOverflow) { |
| m_isText = true; |
| } |
| |
| const String text() const { return String(); } |
| |
| DEFINE_INLINE_TRACE_AFTER_DISPATCH() { |
| NGFragmentBase::traceAfterDispatch(visitor); |
| } |
| }; |
| |
| } // namespace blink |
| |
| #endif // NGText_h |