| Index: third_party/WebKit/Source/core/layout/ng/NGText.h
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/NGFragment.h b/third_party/WebKit/Source/core/layout/ng/NGText.h
|
| similarity index 74%
|
| copy from third_party/WebKit/Source/core/layout/ng/NGFragment.h
|
| copy to third_party/WebKit/Source/core/layout/ng/NGText.h
|
| index 3aa3bd8ba4ddd652cc79932fc6aa228fd10a915b..44147822ead50e3bff2792e27f515280f8504dc9 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/NGFragment.h
|
| +++ b/third_party/WebKit/Source/core/layout/ng/NGText.h
|
| @@ -2,18 +2,19 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef NGFragment_h
|
| -#define NGFragment_h
|
| +#ifndef NGText_h
|
| +#define NGText_h
|
|
|
| #include "core/CoreExport.h"
|
| #include "platform/LayoutUnit.h"
|
| +#include "wtf/text/WTFString.h"
|
|
|
| namespace blink {
|
|
|
| -class CORE_EXPORT NGFragment final {
|
| +class CORE_EXPORT NGText final {
|
| public:
|
| - NGFragment(LayoutUnit inlineSize, LayoutUnit blockSize);
|
| - ~NGFragment() { }
|
| + NGText(LayoutUnit inlineSize, LayoutUnit blockSize);
|
| + ~NGText() { }
|
|
|
| LayoutUnit inlineSize() const { return m_inlineSize; }
|
| LayoutUnit blockSize() const { return m_blockSize; }
|
| @@ -21,6 +22,8 @@ public:
|
| LayoutUnit inlineOffset() const { return m_inlineOffset; }
|
| LayoutUnit blockOffset() const { return m_blockOffset; }
|
|
|
| + const String text() const { return String(); }
|
| +
|
| void setOffset(LayoutUnit inlineOffset, LayoutUnit blockOffset);
|
|
|
| private:
|
| @@ -33,4 +36,4 @@ private:
|
|
|
| } // namespace blink
|
|
|
| -#endif // NGFragment_h
|
| +#endif // NGText_h
|
|
|