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

Unified Diff: Source/core/paint/BlockPainter.cpp

Issue 834173003: Change about caret painting in slimming paint mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 | Source/core/rendering/PaintInfo.cpp » ('j') | Source/platform/graphics/paint/DisplayItem.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | Source/core/rendering/PaintInfo.cpp » ('j') | Source/platform/graphics/paint/DisplayItem.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698