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

Unified Diff: Source/core/paint/FieldsetPainter.cpp

Issue 1316163002: Make the LayoutRect->FloatRect constructor explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/paint/FieldsetPainter.cpp
diff --git a/Source/core/paint/FieldsetPainter.cpp b/Source/core/paint/FieldsetPainter.cpp
index fcbdf8b16b33274fda85ac212f99580a860c9d4e..41834e37800437755bea36e0aa633eabe85e4372 100644
--- a/Source/core/paint/FieldsetPainter.cpp
+++ b/Source/core/paint/FieldsetPainter.cpp
@@ -40,7 +40,8 @@ void FieldsetPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo, c
paintRect.setX(paintRect.x() + xOff);
}
- LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutFieldset, paintInfo.phase, pixelSnappedIntRect(paintRect));
+ // TODO(chrishtr): pixel-snapping here is likely wrong.
+ LayoutObjectDrawingRecorder recorder(*paintInfo.context, m_layoutFieldset, paintInfo.phase, LayoutRect(pixelSnappedIntRect(paintRect)));
jbroman 2015/08/26 19:06:43 as before, this is currently an IntRect->FloatRect
BoxDecorationData boxDecorationData(m_layoutFieldset);
if (boxDecorationData.bleedAvoidance == BackgroundBleedNone)

Powered by Google App Engine
This is Rietveld 408576698