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

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

Issue 2665823002: Invalidate caret during paint invalidation (Closed)
Patch Set: Refactor Created 3 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
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 e41d807fd6544a6a94e17a77747946445fe5ea3e..eeeb7e45e7cb0dd73e65ba229d626b856a40b284 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 {

Powered by Google App Engine
This is Rietveld 408576698