| Index: third_party/WebKit/Source/core/layout/line/LineWidth.h
|
| diff --git a/third_party/WebKit/Source/core/layout/line/LineWidth.h b/third_party/WebKit/Source/core/layout/line/LineWidth.h
|
| index fbddd95d1c184c750de2ab278a50a0cfb7b1fe9a..c96ec9039aa15fa956ee910bdb15c98434a14832 100644
|
| --- a/third_party/WebKit/Source/core/layout/line/LineWidth.h
|
| +++ b/third_party/WebKit/Source/core/layout/line/LineWidth.h
|
| @@ -87,9 +87,15 @@ class LineWidth {
|
| void setTrailingWhitespaceWidth(float width) {
|
| m_trailingWhitespaceWidth = width;
|
| }
|
| - void snapUncommittedWidth() {
|
| - m_uncommittedWidth =
|
| - LayoutUnit::fromFloatCeil(m_uncommittedWidth).toFloat();
|
| + void snapAtNodeBoundary() {
|
| + if (!m_uncommittedWidth) {
|
| + m_committedWidth = LayoutUnit::fromFloatCeil(m_committedWidth).toFloat();
|
| + } else {
|
| + m_uncommittedWidth =
|
| + LayoutUnit::fromFloatCeil(m_committedWidth + m_uncommittedWidth)
|
| + .toFloat() -
|
| + m_committedWidth;
|
| + }
|
| }
|
|
|
| IndentTextOrNot indentText() const { return m_indentText; }
|
|
|