Index: ui/views/controls/textfield/textfield.cc |
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc |
index 9e4111dd0fe1713489e27be3ca6d63faa8f20db2..347de70d3e91b4b092696d1f252635989ba21970 100644 |
--- a/ui/views/controls/textfield/textfield.cc |
+++ b/ui/views/controls/textfield/textfield.cc |
@@ -14,7 +14,7 @@ |
#include "ui/base/dragdrop/drag_utils.h" |
#include "ui/base/touch/selection_bound.h" |
#include "ui/base/ui_base_switches_util.h" |
-#include "ui/compositor/paint_context.h" |
+#include "ui/compositor/canvas_painter.h" |
#include "ui/compositor/scoped_animation_duration_scale_mode.h" |
#include "ui/events/event.h" |
#include "ui/events/keycodes/keyboard_codes.h" |
@@ -1082,7 +1082,7 @@ void Textfield::WriteDragDataForView(View* sender, |
// Desktop Linux Aura does not yet support transparency in drag images. |
canvas->DrawColor(GetBackgroundColor()); |
#endif |
- label.Paint(ui::PaintContext(canvas.get())); |
+ label.Paint(ui::CanvasPainter(canvas.get(), 1.f).context()); |
const gfx::Vector2d kOffset(-15, 0); |
drag_utils::SetDragImageOnDataObject(*canvas, kOffset, data); |
if (controller_) |