Index: ui/views/controls/textfield/textfield.cc |
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc |
index 5c562f17a3797ab1b5f05efff1aa9ae10b34bd8f..010cb75f129c718e26e92180bf5c837d7305df17 100644 |
--- a/ui/views/controls/textfield/textfield.cc |
+++ b/ui/views/controls/textfield/textfield.cc |
@@ -1115,8 +1115,11 @@ void Textfield::WriteDragDataForView(View* sender, |
if (!ui::XVisualManager::GetInstance()->ArgbVisualAvailable()) |
color = GetBackgroundColor(); |
#endif |
- label.Paint( |
- ui::CanvasPainter(&bitmap, label.size(), raster_scale, color).context()); |
+ label.Paint(PaintInfo( |
+ ui::CanvasPainter(&bitmap, label.size(), raster_scale, color, |
+ GetWidget()->GetCompositor()->is_pixel_canvas()) |
+ .context(), |
+ label.size())); |
const gfx::Vector2d kOffset(-15, 0); |
gfx::ImageSkia image(gfx::ImageSkiaRep(bitmap, raster_scale)); |
data->provider().SetDragImage(image, kOffset); |