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

Unified Diff: Source/core/rendering/RenderView.cpp

Issue 659983002: Block selection gaps are not invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added a TestExpectation for the new test. Created 6 years, 2 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 | « LayoutTests/fast/repaint/selection-partial-invalidation-between-blocks-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index a8556c9a51524b126275b3551b178e098326ffc7..6c452d292573adb9d1a11e8e1fae19c91bc06cd4 100644
--- a/Source/core/rendering/RenderView.cpp
+++ b/Source/core/rendering/RenderView.cpp
@@ -655,7 +655,7 @@ void RenderView::setSelection(RenderObject* start, int startPos, RenderObject* e
RenderBlockSelectionInfo* newInfo = newSelectedBlocks.get(block);
RenderBlockSelectionInfo* oldInfo = i->value.get();
if (!newInfo || newInfo->hasChangedFrom(*oldInfo)) {
- oldInfo->object()->setShouldInvalidateSelection();
+ oldInfo->invalidatePaint();
if (newInfo) {
newInfo->object()->setShouldInvalidateSelection();
newSelectedBlocks.remove(block);
« no previous file with comments | « LayoutTests/fast/repaint/selection-partial-invalidation-between-blocks-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698