| Index: third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| index f1e723f6b1128b38e5c3b59e91a8c4da3dce0098..a1edc563a28cd844b0ffe4740927ae1547551cc4 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| @@ -1521,9 +1521,9 @@ float LayoutText::width(unsigned from, unsigned len, const Font& f, LayoutUnit x
|
| return w;
|
| }
|
|
|
| -IntRect LayoutText::linesBoundingBox() const
|
| +LayoutRect LayoutText::linesBoundingBox() const
|
| {
|
| - IntRect result;
|
| + LayoutRect result;
|
|
|
| ASSERT(!firstTextBox() == !lastTextBox()); // Either both are null or both exist.
|
| if (firstTextBox() && lastTextBox()) {
|
| @@ -1543,7 +1543,7 @@ IntRect LayoutText::linesBoundingBox() const
|
| float y = isHorizontal ? firstTextBox()->y().toFloat() : logicalLeftSide;
|
| float width = isHorizontal ? logicalRightSide - logicalLeftSide : lastTextBox()->logicalBottom() - x;
|
| float height = isHorizontal ? lastTextBox()->logicalBottom() - y : logicalRightSide - logicalLeftSide;
|
| - result = enclosingIntRect(FloatRect(x, y, width, height));
|
| + result = enclosingLayoutRect(FloatRect(x, y, width, height));
|
| }
|
|
|
| return result;
|
|
|