| Index: third_party/WebKit/Source/core/paint/BlockPainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/BlockPainter.cpp b/third_party/WebKit/Source/core/paint/BlockPainter.cpp
|
| index ae250bfccabca4a2900c7f12483378e5d69586fd..01c904f187163b273c98929d07a493076bc44eee 100644
|
| --- a/third_party/WebKit/Source/core/paint/BlockPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/BlockPainter.cpp
|
| @@ -193,12 +193,8 @@ void BlockPainter::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pa
|
|
|
| // If the caret's node's layout object's containing block is this block, and the paint action is PaintPhaseForeground,
|
| // then paint the caret.
|
| - if (paintPhase == PaintPhaseForeground && m_layoutBlock.hasCaret() && !LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(paintInfo.context, m_layoutBlock, DisplayItem::Caret)) {
|
| - LayoutRect bounds = m_layoutBlock.visualOverflowRect();
|
| - bounds.moveBy(paintOffset);
|
| - LayoutObjectDrawingRecorder recorder(paintInfo.context, m_layoutBlock, DisplayItem::Caret, bounds);
|
| + if (paintPhase == PaintPhaseForeground && m_layoutBlock.hasCaret())
|
| paintCarets(paintInfo, paintOffset);
|
| - }
|
| }
|
|
|
| void BlockPainter::paintCarets(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
|
|