Use View::GetBoundsInScreen to compute content bounds

This commit is contained in:
Kevin Sawicki 2016-07-29 10:03:35 -07:00
parent 4f90abce23
commit 4751f971e2

View file

@ -545,9 +545,7 @@ gfx::Rect NativeWindowViews::GetBounds() {
} }
gfx::Rect NativeWindowViews::GetContentBounds() { gfx::Rect NativeWindowViews::GetContentBounds() {
gfx::Rect bounds = window_->GetClientAreaBoundsInScreen(); return web_view_->GetBoundsInScreen();
bounds.set_size(GetContentSize());
return bounds;
} }
gfx::Size NativeWindowViews::GetContentSize() { gfx::Size NativeWindowViews::GetContentSize() {