| 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 674d218fc8162ce891b1fb3f93482442972b1d64..0c08b1c89446c980dbf40feb68dfaf1252d46aee 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -4542,13 +4542,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 = blink::caretWidth(frameView()->getHostWindow());
|
| + 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();
|
|
|