| Index: third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/VisibleUnits.cpp b/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| index f953a2630b0faab92dc3a4259336e58aded96745..741375b47c535b1f2880fc0fb749292b79ad4294 100644
|
| --- a/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
|
| @@ -4145,8 +4145,12 @@ static Vector<RectType> ComputeTextBounds(const EphemeralRange& range) {
|
| return result;
|
| }
|
|
|
| -Vector<IntRect> ComputeTextRects(const EphemeralRange& range) {
|
| - return ComputeTextBounds<IntRect>(range);
|
| +IntRect ComputeTextRect(const EphemeralRange& range) {
|
| + IntRect result;
|
| + const Vector<IntRect>& rects = ComputeTextBounds<IntRect>(range);
|
| + for (const IntRect& rect : rects)
|
| + result.Unite(rect);
|
| + return result;
|
| }
|
|
|
| Vector<FloatQuad> ComputeTextQuads(const EphemeralRange& range) {
|
|
|