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

Unified Diff: Source/core/rendering/RenderSelectionInfo.h

Issue 464143003: Fix selection residue in sub-pixel positioned element (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/rendering/RenderSelectionInfo.h
diff --git a/Source/core/rendering/RenderSelectionInfo.h b/Source/core/rendering/RenderSelectionInfo.h
index 234fbe0aac5bc9221e8abac2ac4a52fa58f07b3e..7dfc05941e8d0abdf233f025fe206cef7be97b07 100644
--- a/Source/core/rendering/RenderSelectionInfo.h
+++ b/Source/core/rendering/RenderSelectionInfo.h
@@ -75,7 +75,7 @@ public:
void repaint()
{
- m_object->invalidatePaintUsingContainer(m_repaintContainer, m_rect, InvalidationSelection);
+ m_object->invalidatePaintUsingContainer(m_repaintContainer, enclosingIntRect(m_rect), InvalidationSelection);
}
LayoutRect rect() const { return m_rect; }
@@ -105,7 +105,7 @@ public:
// repaintContainer as the render object. Find out why it does that and fix.
if (m_repaintContainer && m_repaintContainer->layer()->groupedMapping())
RenderLayer::mapRectToPaintInvalidationBacking(m_repaintContainer, m_repaintContainer, repaintRect);
- m_object->invalidatePaintUsingContainer(m_repaintContainer, repaintRect, InvalidationSelection);
+ m_object->invalidatePaintUsingContainer(m_repaintContainer, enclosingIntRect(repaintRect), InvalidationSelection);
}
RenderBlock* block() const { return toRenderBlock(m_object); }

Powered by Google App Engine
This is Rietveld 408576698