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

Unified Diff: third_party/WebKit/Source/core/editing/DragCaret.cpp

Issue 2737043002: Fix caret paint invalidation issue on partial lifecycle updates (Closed)
Patch Set: Created 3 years, 9 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/editing/DragCaret.cpp
diff --git a/third_party/WebKit/Source/core/editing/DragCaret.cpp b/third_party/WebKit/Source/core/editing/DragCaret.cpp
index e7aeb22365f0151cfc4cf6d3f1d3c19ca564193c..8522d2f20ff61720742666b3019d92974ab050df 100644
--- a/third_party/WebKit/Source/core/editing/DragCaret.cpp
+++ b/third_party/WebKit/Source/core/editing/DragCaret.cpp
@@ -49,8 +49,8 @@ void DragCaret::layoutBlockWillBeDestroyed(const LayoutBlock& block) {
m_displayItemClient->layoutBlockWillBeDestroyed(block);
}
-void DragCaret::updateStyleAndLayoutIfNeeded() {
- m_displayItemClient->updateStyleAndLayoutIfNeeded(
+void DragCaret::updateForPaintInvalidation() {
+ m_displayItemClient->updateForPaintInvalidation(
rootEditableElementOf(m_position.position()) ? m_position
: PositionWithAffinity());
}

Powered by Google App Engine
This is Rietveld 408576698