| Index: Source/core/paint/BlockPainter.cpp
|
| diff --git a/Source/core/paint/BlockPainter.cpp b/Source/core/paint/BlockPainter.cpp
|
| index 200c98e7217f3712d3bedc3884ebd8e0ca747d5b..59aac176e9b5e94b65caa70cc7f4c5b206a9f0f2 100644
|
| --- a/Source/core/paint/BlockPainter.cpp
|
| +++ b/Source/core/paint/BlockPainter.cpp
|
| @@ -227,8 +227,8 @@ void BlockPainter::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pa
|
|
|
| // If the caret's node's render object's containing block is this block, and the paint action is PaintPhaseForeground,
|
| // then paint the caret.
|
| - if (paintPhase == PaintPhaseForeground) {
|
| - RenderDrawingRecorder recorder(paintInfo.context, m_renderBlock, paintPhase, bounds);
|
| + if (paintPhase == PaintPhaseForeground && hasCaret()) {
|
| + RenderDrawingRecorder recorder(paintInfo.context, m_renderBlock, PaintPhaseCaret, bounds);
|
| if (!recorder.canUseCachedDrawing())
|
| paintCarets(paintInfo, paintOffset);
|
| }
|
|
|