Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Unified Diff: third_party/WebKit/Source/core/editing/CaretBase.cpp

Issue 2361683002: Don't round the paint offset when painting carets. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fb0b8f0284d7ed68c458b5f1ede38730aa6ddc15..c5c6b5cf1a003fcc5c8ff386c183e4c2d7d52b27 100644
--- a/third_party/WebKit/Source/core/editing/CaretBase.cpp
+++ b/third_party/WebKit/Source/core/editing/CaretBase.cpp
@@ -193,7 +193,7 @@ void CaretBase::paintCaret(Node* node, GraphicsContext& context, const LayoutPoi
LayoutRect drawingRect = localCaretRectWithoutUpdate();
if (LayoutBlock* layoutObject = caretLayoutObject(node))
layoutObject->flipForWritingMode(drawingRect);
- drawingRect.moveBy(roundedIntPoint(paintOffset));
+ drawingRect.moveBy(paintOffset);
const Color caretColor = node->layoutObject()->resolveColor(CSSPropertyColor);
IntRect paintRect = pixelSnappedIntRect(drawingRect);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698