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

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

Issue 1958093002: CONTINUED Make FrameSelection to hold non-canonicalized positions Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2017-01-16T20:04:35 Created 3 years, 11 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/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 9d353189efb8d043a67ef5c640bd8b363b04f933..c928db56e8d3aa90af75949a9e5d9056d07c20ba 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -1319,8 +1319,7 @@ void FrameView::invalidatePaintIfNeeded(
if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled())
invalidatePaintOfScrollControlsIfNeeded(paintInvalidationState);
- if (m_frame->selection().isCaretBoundsDirty())
- m_frame->selection().invalidateCaretRect();
+ m_frame->selection().invalidateCaretRect();
}
void FrameView::setNeedsPaintPropertyUpdate() {
@@ -2425,8 +2424,7 @@ void FrameView::performPostLayoutTasks() {
m_postLayoutTasksTimer.stop();
- m_frame->selection().setCaretRectNeedsUpdate();
- m_frame->selection().updateAppearance();
+ m_frame->selection().didLayout();
ASSERT(m_frame->document());

Powered by Google App Engine
This is Rietveld 408576698