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

Unified Diff: Source/core/paint/ImagePainter.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/ImagePainter.cpp
diff --git a/Source/core/paint/ImagePainter.cpp b/Source/core/paint/ImagePainter.cpp
index 41843b2a01b6d1aa3c52cb2a4b8930dbc489fa48..b3dd8142bb87bac1b0fa9a37ebb84ea842bf0cb0 100644
--- a/Source/core/paint/ImagePainter.cpp
+++ b/Source/core/paint/ImagePainter.cpp
@@ -62,7 +62,7 @@ void ImagePainter::paintAreaElementFocusRing(const PaintInfo& paintInfo)
return;
IntRect focusRect = m_layoutImage.absoluteContentBox();
- LayoutObjectDrawingRecorder drawingRecorder(*paintInfo.context, m_layoutImage, paintInfo.phase, focusRect);
+ LayoutObjectDrawingRecorder drawingRecorder(*paintInfo.context, m_layoutImage, paintInfo.phase, LayoutRect(focusRect));
jbroman 2015/08/26 19:06:43 ditto
chrishtr 2015/08/26 20:53:51 Fixed.
// FIXME: Clip path instead of context when Skia pathops is ready.
// https://crbug.com/251206
@@ -90,7 +90,7 @@ void ImagePainter::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint&
return;
// Draw an outline rect where the image should be.
IntRect paintRect = pixelSnappedIntRect(LayoutRect(paintOffset.x() + m_layoutImage.borderLeft() + m_layoutImage.paddingLeft(), paintOffset.y() + m_layoutImage.borderTop() + m_layoutImage.paddingTop(), cWidth, cHeight));
- LayoutObjectDrawingRecorder drawingRecorder(*context, m_layoutImage, paintInfo.phase, paintRect);
+ LayoutObjectDrawingRecorder drawingRecorder(*context, m_layoutImage, paintInfo.phase, LayoutRect(paintRect));
jbroman 2015/08/26 19:06:43 ditto
chrishtr 2015/08/26 20:53:51 Fixed.
context->setStrokeStyle(SolidStroke);
context->setStrokeColor(Color::lightGray);
context->setFillColor(Color::transparent);

Powered by Google App Engine
This is Rietveld 408576698