| Index: third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_data.h
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_data.h b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_data.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c4ad32ebfc38126bc205b3f35454629cb69509d9
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_data.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2017 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 NGInlineNodeData_h
|
| +#define NGInlineNodeData_h
|
| +
|
| +#include "core/CoreExport.h"
|
| +#include "core/layout/ng/inline/ng_inline_item.h"
|
| +#include "platform/wtf/Vector.h"
|
| +
|
| +namespace blink {
|
| +
|
| +// Data which is required for inline nodes.
|
| +struct CORE_EXPORT NGInlineNodeData {
|
| + private:
|
| + friend class NGInlineNode;
|
| + friend class NGInlineNodeForTest;
|
| +
|
| + // Text content for all inline items represented by a single NGInlineNode.
|
| + // Encoded either as UTF-16 or latin-1 depending on the content.
|
| + String text_content_;
|
| + Vector<NGInlineItem> items_;
|
| +
|
| + // TODO(kojii): This should move to somewhere else when we move PrepareLayout
|
| + // to the correct place.
|
| + bool is_bidi_enabled_ = false;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // NGInlineNode_h
|
|
|