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

Unified Diff: third_party/WebKit/Source/core/layout/ng/NGText.h

Issue 2222363003: [LayoutNG] Add NGText class definition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [LayoutNG] Add NGText class definition Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/layout/ng/NGText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/layout/ng/NGText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698