| Index: third_party/WebKit/Source/core/editing/CaretBase.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/CaretBase.cpp b/third_party/WebKit/Source/core/editing/CaretBase.cpp
|
| index 9a470a0b2d67df7b23184f4bfa7a0ff9bde3fa97..2396208471db959434750bfd532e3f8944d04fc4 100644
|
| --- a/third_party/WebKit/Source/core/editing/CaretBase.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/CaretBase.cpp
|
| @@ -217,9 +217,9 @@ void CaretBase::paintCaret(Node* node, GraphicsContext& context, const LayoutPoi
|
| if (element && element->layoutObject())
|
| caretColor = element->layoutObject()->resolveColor(CSSPropertyColor);
|
|
|
| - DrawingRecorder drawingRecorder(context, *this, DisplayItem::kCaret, FloatRect(drawingRect));
|
| -
|
| - context.fillRect(FloatRect(drawingRect), caretColor);
|
| + IntRect paintRect = pixelSnappedIntRect(drawingRect);
|
| + DrawingRecorder drawingRecorder(context, *this, DisplayItem::kCaret, paintRect);
|
| + context.fillRect(paintRect, caretColor);
|
| }
|
|
|
| void CaretBase::setCaretVisibility(CaretVisibility visibility)
|
|
|