| Index: Source/core/layout/svg/LayoutSVGInlineText.cpp
|
| diff --git a/Source/core/layout/svg/LayoutSVGInlineText.cpp b/Source/core/layout/svg/LayoutSVGInlineText.cpp
|
| index 4f77904650d91bd997ff8f361a74bc0df6d90ca7..69a3b61ad7496474fa1ae2a32ff77a7ea4af2da2 100644
|
| --- a/Source/core/layout/svg/LayoutSVGInlineText.cpp
|
| +++ b/Source/core/layout/svg/LayoutSVGInlineText.cpp
|
| @@ -121,19 +121,19 @@ LayoutRect LayoutSVGInlineText::localCaretRect(InlineBox* box, int caretOffset,
|
| if (static_cast<unsigned>(caretOffset) < textBox->start() + textBox->len()) {
|
| LayoutRect rect = textBox->localSelectionRect(caretOffset, caretOffset + 1);
|
| LayoutUnit x = box->isLeftToRightDirection() ? rect.x() : rect.maxX();
|
| - return LayoutRect(x, rect.y(), caretWidth, rect.height());
|
| + return LayoutRect(x, rect.y(), caretWidth(), rect.height());
|
| }
|
|
|
| LayoutRect rect = textBox->localSelectionRect(caretOffset - 1, caretOffset);
|
| LayoutUnit x = box->isLeftToRightDirection() ? rect.maxX() : rect.x();
|
| - return LayoutRect(x, rect.y(), caretWidth, rect.height());
|
| + return LayoutRect(x, rect.y(), caretWidth(), rect.height());
|
| }
|
|
|
| FloatRect LayoutSVGInlineText::floatLinesBoundingBox() const
|
| {
|
| FloatRect boundingBox;
|
| for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox())
|
| - boundingBox.unite(box->calculateBoundaries().toFloatRect());
|
| + boundingBox.unite(FloatRect(box->calculateBoundaries()));
|
| return boundingBox;
|
| }
|
|
|
|
|