| Index: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
|
| diff --git a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
|
| index 1d487dd4998bbe2c6110b0508d272ed6f281fdf2..2ccab0239f966e92ff18b62047f6c49f294918ff 100644
|
| --- a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
|
| +++ b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
|
| @@ -18,6 +18,7 @@
|
| #include "third_party/skia/include/core/SkDrawLooper.h"
|
| #include "ui/base/theme_provider.h"
|
| #include "ui/compositor/clip_recorder.h"
|
| +#include "ui/compositor/paint_context.h"
|
| #include "ui/compositor/paint_recorder.h"
|
| #include "ui/gfx/canvas.h"
|
| #include "ui/gfx/geometry/safe_integer_conversions.h"
|
| @@ -468,7 +469,13 @@ void OmniboxPopupContentsView::PaintChildren(const ui::PaintContext& context) {
|
| g_bottom_shadow.Get().height());
|
|
|
| ui::ClipRecorder clip_recorder(context);
|
| - clip_recorder.ClipRect(contents_bounds);
|
| +
|
| +
|
| +
|
| + gfx::Rect scaled_bounds = gfx::ScaleToEnclosingRect(
|
| + contents_bounds, context.device_scale_factor(),
|
| + context.device_scale_factor());
|
| + clip_recorder.ClipRect(scaled_bounds);
|
| {
|
| ui::PaintRecorder recorder(context, size());
|
| SkColor background_color = result_view_at(0)->GetColor(
|
|
|