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

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: Delay invalidation 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
« no previous file with comments | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/html/HTMLTextFormControlElementTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 055dc003990c16754a31d390ba5aa50fb153c637..3c8e9762425af206ab1ec4d2dc9ca42f89540986 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -995,6 +995,12 @@ void FrameView::invalidateTreeIfNeeded()
#ifndef NDEBUG
renderView()->assertSubtreeClearedPaintInvalidationState();
#endif
+
+ Page* page = frame().page();
+ ASSERT(page);
+ LocalFrame* frame = toLocalFrame(page->focusController().focusedOrMainFrame());
+ if (frame)
+ frame->selection().invalidateCaretRect();
abarth-chromium 2014/08/12 19:36:25 Suppose the caret moved from one LocalFrame to ano
yoichio 2014/08/13 20:05:28 Call each LocalFrame invalidation. Thus a focused
}
DocumentLifecycle& FrameView::lifecycle() const
« no previous file with comments | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/html/HTMLTextFormControlElementTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698