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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 431983005: FrameSelection::updateApperance for caret should not cause layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update Created 6 years, 4 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: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index b12530ace8d2e8c6683ee59379db78059578f113..418c4fe7f502c14cf99666fe23b316c9f6d87602 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -995,6 +995,9 @@ void FrameView::invalidateTreeIfNeeded()
#ifndef NDEBUG
renderView()->assertSubtreeClearedPaintInvalidationState();
#endif
+
+ if (m_frame->selection().isCaretBoundsDirty())
+ m_frame->selection().invalidateCaretRect();
}
DocumentLifecycle& FrameView::lifecycle() const

Powered by Google App Engine
This is Rietveld 408576698