Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_view_aura.cc |
| diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc |
| index 31a75142e24b8a68f7f72cbd9fc769958845f29f..d86c6e617accef225cec7e242ab5afb06eeb7629 100644 |
| --- a/content/browser/renderer_host/render_widget_host_view_aura.cc |
| +++ b/content/browser/renderer_host/render_widget_host_view_aura.cc |
| @@ -2588,7 +2588,12 @@ void RenderWidgetHostViewAura::SnapToPhysicalPixelBoundary() { |
| // to avoid the web contents area looking blurry we translate the web contents |
| // in the +x, +y direction to land on the nearest pixel boundary. This may |
| // cause the bottom and right edges to be clipped slightly, but that's ok. |
| +#if defined(OS_CHROMEOS) |
| + aura::Window* snapped = window_->GetToplevelWindow(); |
| +#else |
| aura::Window* snapped = window_->GetRootWindow(); |
| +#endif |
|
sadrul
2016/06/09 02:57:04
It may be OK to use GetToplevelWindow() on non-chr
|
| + |
| if (snapped && snapped != window_) |
| ui::SnapLayerToPhysicalPixelBoundary(snapped->layer(), window_->layer()); |