| Index: third_party/WebKit/Source/core/layout/line/InlineTextBox.h
|
| diff --git a/third_party/WebKit/Source/core/layout/line/InlineTextBox.h b/third_party/WebKit/Source/core/layout/line/InlineTextBox.h
|
| index 4eed61844e1fe9c23f5df65eb14dbaf004d9ddb8..7b47b9355e7d2bc81da2e61e20fdf43bc1de3ce8 100644
|
| --- a/third_party/WebKit/Source/core/layout/line/InlineTextBox.h
|
| +++ b/third_party/WebKit/Source/core/layout/line/InlineTextBox.h
|
| @@ -35,6 +35,15 @@ namespace blink {
|
| class DocumentMarker;
|
| class GraphicsContext;
|
|
|
| +// The two truncation values below are used as tokens representing truncation
|
| +// state for the text box, are intended to be relative to |m_start|, and are set
|
| +// directly into |m_truncation|. In the case where there is some truncation of
|
| +// the text but it is not full, |m_truncation| is set to the character offset
|
| +// from |m_start| representing the characters that are not truncated.
|
| +//
|
| +// Thus the maximum possible length of the text displayed before an ellipsis in
|
| +// a single InlineTextBox is |USHRT_MAX - 2| to allow for the no-truncation and
|
| +// full-truncation states.
|
| const unsigned short cNoTruncation = USHRT_MAX;
|
| const unsigned short cFullTruncation = USHRT_MAX - 1;
|
|
|
|
|