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

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

Issue 800553002: Disable drawing recorder cache for carets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleanup Created 6 years 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
Index: Source/core/paint/BlockPainter.cpp
diff --git a/Source/core/paint/BlockPainter.cpp b/Source/core/paint/BlockPainter.cpp
index 809f8ba106cf29a26706314efc9060c4a52080ff..cbc61e389864e0a63d8a7123eaf52b15f54ebb9a 100644
--- a/Source/core/paint/BlockPainter.cpp
+++ b/Source/core/paint/BlockPainter.cpp
@@ -225,7 +225,7 @@ 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);
+ RenderDrawingRecorder recorder(paintInfo.context, &m_renderBlock, paintPhase, bounds, DrawingRecorder::DisableCache);
chrishtr 2014/12/12 00:18:01 Add a comment explaining the situation. Also, how
Xianzhu 2014/12/12 00:24:16 Actually we already invalidated carets within thei
paintCarets(paintInfo, paintOffset);
}
}

Powered by Google App Engine
This is Rietveld 408576698