| Index: third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_test.cc
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_test.cc b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_test.cc
|
| index 13e6616a9f33bfe1ce274991d538113b3e227fbf..200ebd012e0336587597c77a91ec9a75365a0506 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_test.cc
|
| +++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_test.cc
|
| @@ -22,33 +22,34 @@ class NGInlineNodeForTest : public NGInlineNode {
|
| public:
|
| using NGInlineNode::NGInlineNode;
|
|
|
| - String& Text() { return text_content_; }
|
| - Vector<NGInlineItem>& Items() { return items_; }
|
| + String& Text() { return MutableData().text_content_; }
|
| + Vector<NGInlineItem>& Items() { return MutableData().items_; }
|
|
|
| void Append(const String& text,
|
| const ComputedStyle* style = nullptr,
|
| LayoutObject* layout_object = nullptr) {
|
| - unsigned start = text_content_.length();
|
| - text_content_.Append(text);
|
| - items_.push_back(NGInlineItem(NGInlineItem::kText, start,
|
| - start + text.length(), style, layout_object));
|
| + unsigned start = Data().text_content_.length();
|
| + MutableData().text_content_.Append(text);
|
| + MutableData().items_.push_back(NGInlineItem(NGInlineItem::kText, start,
|
| + start + text.length(), style,
|
| + layout_object));
|
| }
|
|
|
| void Append(UChar character) {
|
| - text_content_.Append(character);
|
| - unsigned end = text_content_.length();
|
| - items_.push_back(
|
| + MutableData().text_content_.Append(character);
|
| + unsigned end = Data().text_content_.length();
|
| + MutableData().items_.push_back(
|
| NGInlineItem(NGInlineItem::kBidiControl, end - 1, end, nullptr));
|
| - is_bidi_enabled_ = true;
|
| + MutableData().is_bidi_enabled_ = true;
|
| }
|
|
|
| void ClearText() {
|
| - text_content_ = String();
|
| - items_.clear();
|
| + MutableData().text_content_ = String();
|
| + MutableData().items_.clear();
|
| }
|
|
|
| void SegmentText() {
|
| - is_bidi_enabled_ = true;
|
| + MutableData().is_bidi_enabled_ = true;
|
| NGInlineNode::SegmentText();
|
| }
|
|
|
|
|