| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| index e0126396032491a8a71876ef69f4bec95f6e2f0d..b55a3a13109879ff4000d07807ffadd3782ab7b9 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -4550,13 +4550,13 @@ LayoutRect LayoutBox::localCaretRect(InlineBox* box,
|
| // They never refer to children.
|
| // FIXME: Paint the carets inside empty blocks differently than the carets
|
| // before/after elements.
|
| -
|
| - LayoutRect rect(location(), LayoutSize(caretWidth(), size().height()));
|
| + LayoutUnit caretWidth = frameView()->caretWidth();
|
| + LayoutRect rect(location(), LayoutSize(caretWidth, size().height()));
|
| bool ltr =
|
| box ? box->isLeftToRightDirection() : style()->isLeftToRightDirection();
|
|
|
| if ((!caretOffset) ^ ltr)
|
| - rect.move(LayoutSize(size().width() - caretWidth(), LayoutUnit()));
|
| + rect.move(LayoutSize(size().width() - caretWidth, LayoutUnit()));
|
|
|
| if (box) {
|
| RootInlineBox& rootBox = box->root();
|
|
|