| Index: Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| diff --git a/Source/platform/fonts/shaping/HarfBuzzShaper.cpp b/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| index e1393ce18e96fbfc7f949e5fd83fb892b388737b..8f0042a357d1087438306c59247fc80b0b2cb437 100644
|
| --- a/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| +++ b/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
| @@ -1146,15 +1146,9 @@ FloatRect HarfBuzzShaper::selectionRect(const FloatPoint& point, int height, int
|
| if (!foundToX)
|
| toX = m_run.rtl() ? 0 : m_totalWidth;
|
|
|
| - if (fromX < toX) {
|
| - return Font::pixelSnappedSelectionRect(
|
| - point.x() + fromX, point.x() + toX,
|
| - point.y(), height);
|
| - }
|
| -
|
| - return Font::pixelSnappedSelectionRect(
|
| - point.x() + toX, point.x() + fromX,
|
| - point.y(), height);
|
| + if (fromX < toX)
|
| + return FloatRect(point.x() + fromX, point.y(), toX - fromX, height);
|
| + return FloatRect(point.x() + toX, point.y(), fromX - toX, height);
|
| }
|
|
|
| } // namespace blink
|
|
|