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

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

Issue 2777183003: Fix caret visual rect on compositing 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/CaretDisplayItemClientTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 efe03c01a59b93b3c173038b1464730cab3ae16f..0b39d3018136a2256f5fafb862ac38b3fd1ab156 100644
--- a/third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp
+++ b/third_party/WebKit/Source/core/editing/CaretDisplayItemClient.cpp
@@ -116,10 +116,8 @@ LayoutRect CaretDisplayItemClient::computeCaretRect(
}
void CaretDisplayItemClient::clearPreviousVisualRect(const LayoutBlock& block) {
- if (block == m_layoutBlock) {
+ if (block == m_layoutBlock)
m_visualRect = LayoutRect();
- m_localRect = LayoutRect();
- }
if (block == m_previousLayoutBlock)
m_visualRectInPreviousLayoutBlock = LayoutRect();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/CaretDisplayItemClientTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698