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

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

Issue 2665823002: Invalidate caret during paint invalidation (Closed)
Patch Set: Rebaseline 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/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index 3d581f823066b04e47e447e2b2753a9d65cc5915..45b14bf0e9cc97c8d2191872770174245ff69de4 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -410,7 +410,7 @@ void PaintLayerScrollableArea::updateScrollOffset(const ScrollOffset& newOffset,
const LayoutBoxModelObject& paintInvalidationContainer =
box().containerForPaintInvalidation();
// The caret rect needs to be invalidated after scrolling
- frame->selection().setCaretRectNeedsUpdate();
+ frame->selection().setCaretMayNeedPaintInvalidation();
FloatQuad quadForFakeMouseMoveEvent = FloatQuad(FloatRect(
layer()->layoutObject()->previousVisualRectIncludingCompositedScrolling(

Powered by Google App Engine
This is Rietveld 408576698