Index: third_party/WebKit/Source/core/dom/Range.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Range.cpp b/third_party/WebKit/Source/core/dom/Range.cpp |
index de056bbffe1d70c4388b1d4ddd094fde4bebe475..51d913490bc7aeacaa3e4bead7ed7c6ef647ddcd 100644 |
--- a/third_party/WebKit/Source/core/dom/Range.cpp |
+++ b/third_party/WebKit/Source/core/dom/Range.cpp |
@@ -1441,11 +1441,7 @@ Node* Range::PastLastNode() const { |
} |
IntRect Range::BoundingBox() const { |
- IntRect result; |
- const Vector<IntRect>& rects = ComputeTextRects(EphemeralRange(this)); |
- for (const IntRect& rect : rects) |
- result.Unite(rect); |
- return result; |
+ return ComputeTextRect(EphemeralRange(this)); |
} |
// TODO(tanvir.rizvi): We will replace Range::TextQuads with |