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

Unified Diff: sky/engine/core/editing/FrameSelection.cpp

Issue 844023003: Delete InvalidationReason. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderBlockFlow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/editing/FrameSelection.cpp
diff --git a/sky/engine/core/editing/FrameSelection.cpp b/sky/engine/core/editing/FrameSelection.cpp
index 4d09f7b36b45cec76a70355e7bec50ad80cd7cc9..07c8186eb915821ef8308d6e078d32731a10ea4a 100644
--- a/sky/engine/core/editing/FrameSelection.cpp
+++ b/sky/engine/core/editing/FrameSelection.cpp
@@ -1372,12 +1372,6 @@ void FrameSelection::focusedOrActiveStateChanged()
RefPtr<Document> document = m_frame->document();
document->updateRenderTreeIfNeeded();
- // Because RenderObject::selectionBackgroundColor() and
- // RenderObject::selectionForegroundColor() check if the frame is active,
- // we have to update places those colors were painted.
- if (RenderView* view = document->renderView())
- view->invalidatePaintForSelection();
-
// Caret appears in the active frame.
if (activeAndFocused)
setSelectionFromNone();
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderBlockFlow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698