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

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

Issue 353403006: Consider subpixel accumulation when invalidating paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Also squashing path Created 6 years, 6 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 5677ed42d6bd16aad9d88b4f06de381eed1b166e..667b461bb7991829a2f311534a4a8372f31bd4a6 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, enclosingIntRect(m_rect), InvalidationSelection);
+ m_object->invalidatePaintUsingContainer(m_repaintContainer, m_rect, InvalidationSelection);
}
LayoutRect rect() const { return m_rect; }
@@ -99,13 +99,13 @@ public:
void repaint()
{
- LayoutRect repaintRect = enclosingIntRect(m_rects);
+ LayoutRect repaintRect = m_rects;
// FIXME: this is leaking the squashing abstraction. However, removing the groupedMapping() condiitional causes
// RenderBox::mapRectToPaintInvalidationBacking to get called, which makes rect adjustments even if you pass the same
// 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, enclosingIntRect(repaintRect), InvalidationSelection);
+ m_object->invalidatePaintUsingContainer(m_repaintContainer, repaintRect, InvalidationSelection);
}
RenderBlock* block() const { return toRenderBlock(m_object); }

Powered by Google App Engine
This is Rietveld 408576698