Commit d7419275 authored by enne@chromium.org's avatar enne@chromium.org

Fix RenderWidgetHostViewMac::SchedulePaintInRect

This function in Aura is intended to be used for layer damage (not
window damage), so make the Mac version do the same.

BUG=none

Review URL: https://codereview.chromium.org/427393005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287474 0039d316-1c4b-4281-b951-d872f2087c98
parent 6957d2cb
...@@ -427,8 +427,8 @@ RenderWidgetHostImpl* RenderWidgetHostViewMac::GetHost() { ...@@ -427,8 +427,8 @@ RenderWidgetHostImpl* RenderWidgetHostViewMac::GetHost() {
void RenderWidgetHostViewMac::SchedulePaintInRect( void RenderWidgetHostViewMac::SchedulePaintInRect(
const gfx::Rect& damage_rect_in_dip) { const gfx::Rect& damage_rect_in_dip) {
if (browser_compositor_view_) DCHECK(GetLayer());
browser_compositor_view_->GetCompositor()->ScheduleFullRedraw(); GetLayer()->SchedulePaint(damage_rect_in_dip);
} }
bool RenderWidgetHostViewMac::IsVisible() { bool RenderWidgetHostViewMac::IsVisible() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment