| Index: third_party/WebKit/Source/core/layout/ng/inline/ng_physical_text_fragment.h
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_physical_text_fragment.h b/third_party/WebKit/Source/core/layout/ng/inline/ng_physical_text_fragment.h
|
| index 45e053033432da9c1b4dc16555dab5fc5424d0f9..b49d085e53db80e3abac49d8995069e4209bbce9 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/inline/ng_physical_text_fragment.h
|
| +++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_physical_text_fragment.h
|
| @@ -31,11 +31,24 @@ class CORE_EXPORT NGPhysicalTextFragment final : public NGPhysicalFragment {
|
| const NGInlineNode* Node() const { return node_; }
|
| StringView Text() const { return node_->Text(start_offset_, end_offset_); }
|
|
|
| + const ShapeResult* TextShapeResult() const {
|
| + // TOD(eae): This is incorrect as it includes the full results for the line,
|
| + // should either subset the range (for now) or use the line shape results
|
| + // once we switch to the shaper driven line breaker.
|
| + return node_->Items()[item_index_].TextShapeResult();
|
| + }
|
| +
|
| // The range of NGLayoutInlineItem.
|
| unsigned ItemIndex() const { return item_index_; }
|
| unsigned StartOffset() const { return start_offset_; }
|
| unsigned EndOffset() const { return end_offset_; }
|
|
|
| + // TODO(eae): Move definition of kCNoTruncation and use here.
|
| + unsigned short Truncation() const { return USHRT_MAX; }
|
| +
|
| + // TODO(eae): ???
|
| + bool IsHorizontal() const { return true; }
|
| +
|
| private:
|
| // TODO(kojii): NGInlineNode is to access text content and NGLayoutInlineItem.
|
| // Review if it's better to point them.
|
|
|