| Index: Source/core/layout/LayoutBlockFlowLine.cpp
|
| diff --git a/Source/core/layout/LayoutBlockFlowLine.cpp b/Source/core/layout/LayoutBlockFlowLine.cpp
|
| index 7f0e96a21f2313bcb6cf67b49091cfccecf0bb9e..e60b0f88213ecdcff7b9087edf5f23086d79e009 100644
|
| --- a/Source/core/layout/LayoutBlockFlowLine.cpp
|
| +++ b/Source/core/layout/LayoutBlockFlowLine.cpp
|
| @@ -435,7 +435,10 @@ static inline void setLogicalWidthForTextRun(RootInlineBox* lineBox, BidiRun* ru
|
| // Negative word-spacing and/or letter-spacing may cause some glyphs to overflow the left boundary and result
|
| // negative measured width. Reset measured width to 0 and adjust glyph bounds accordingly to cover the overflow.
|
| if (measuredWidth < 0) {
|
| - glyphBounds.move(measuredWidth, 0);
|
| + if (measuredWidth < glyphBounds.x()) {
|
| + glyphBounds.expand(glyphBounds.x() - measuredWidth, 0);
|
| + glyphBounds.setX(measuredWidth);
|
| + }
|
| measuredWidth = 0;
|
| }
|
|
|
|
|