| Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| index bc34b9db1025b2770f6ea5057c156dcd55f505d4..a2739a7ffa550b14669a151d4ad11174953dc74e 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
|
| @@ -1606,7 +1606,7 @@ bool LayoutBlock::hasDragCaret() const
|
| LayoutRect LayoutBlock::localCaretRect(InlineBox* inlineBox, int caretOffset, LayoutUnit* extraWidthToEndOfLine)
|
| {
|
| // Do the normal calculation in most cases.
|
| - if (firstChild() || isInlineBoxWrapperActuallyChild())
|
| + if ((firstChild() && !firstChild()->isPseudoElement()) || isInlineBoxWrapperActuallyChild())
|
| return LayoutBox::localCaretRect(inlineBox, caretOffset, extraWidthToEndOfLine);
|
|
|
| LayoutRect caretRect = localCaretRectForEmptyElement(size().width(), textIndentOffset());
|
|
|