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

Unified Diff: third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp

Issue 2665823002: Invalidate caret during paint invalidation (Closed)
Patch Set: NeedsRebaseline Created 3 years, 10 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
Index: third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
index 46dd61cf23d0a2076f23be9bfc56b39112a43fe9..15e04065780106bf68e3bb12ca6a3489e9a15205 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
@@ -318,7 +318,8 @@ void ObjectPaintInvalidator::setBackingNeedsPaintInvalidationInRect(
rect, reason, m_object);
} else if (paintInvalidationContainer.usesCompositedScrolling()) {
DCHECK(m_object == paintInvalidationContainer);
- if (reason == PaintInvalidationBackgroundOnScrollingContentsLayer) {
+ if (reason == PaintInvalidationBackgroundOnScrollingContentsLayer ||
+ reason == PaintInvalidationCaret) {
layer.compositedLayerMapping()->setScrollingContentsNeedDisplayInRect(
rect, reason, m_object);
} else {
« no previous file with comments | « third_party/WebKit/Source/core/paint/BlockPainter.cpp ('k') | third_party/WebKit/Source/core/paint/PaintInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698