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

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

Issue 2732573003: Skip paint property update and visual rect update if no geometry change (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/CaretDisplayItemClient.cpp
diff --git a/third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp b/third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp
index 0990fdef8cabca9e3bf7024048e5965ca2a6dc46..56cad3b60d594017bd4af23cab1a266b0f279a0b 100644
--- a/third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp
+++ b/third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp
@@ -131,7 +131,7 @@ void CaretDisplayItemClient::updateStyleAndLayoutIfNeeded(
LayoutBlock* newLayoutBlock = caretLayoutBlock(caretPosition.anchorNode());
if (newLayoutBlock != m_layoutBlock) {
if (m_layoutBlock)
- m_layoutBlock->setMayNeedPaintInvalidation();
+ m_layoutBlock->setMayNeedPaintInvalidationWithoutGeometryChange();
m_layoutBlock = newLayoutBlock;
if (newLayoutBlock)
m_needsPaintInvalidation = true;
@@ -161,7 +161,7 @@ void CaretDisplayItemClient::updateStyleAndLayoutIfNeeded(
}
if (m_needsPaintInvalidation)
- newLayoutBlock->setMayNeedPaintInvalidation();
+ newLayoutBlock->setMayNeedPaintInvalidationWithoutGeometryChange();
}
void CaretDisplayItemClient::invalidatePaintIfNeeded(

Powered by Google App Engine
This is Rietveld 408576698