summaryrefslogtreecommitdiffstats
path: root/content/browser/web_contents/web_contents_view_aura.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/web_contents/web_contents_view_aura.cc')
-rw-r--r--content/browser/web_contents/web_contents_view_aura.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index 63fe316..21b82af 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -304,7 +304,7 @@ gfx::NativeWindow WebContentsViewAura::GetTopLevelNativeWindow() const {
}
void WebContentsViewAura::GetContainerBounds(gfx::Rect *out) const {
- *out = window_->GetBoundsInRootWindow();
+ *out = window_->GetScreenBounds();
}
void WebContentsViewAura::SetPageTitle(const string16& title) {
@@ -398,7 +398,7 @@ void WebContentsViewAura::CloseTabAfterEventTracking() {
}
gfx::Rect WebContentsViewAura::GetViewBounds() const {
- return window_->GetBoundsInRootWindow();
+ return window_->GetRootWindowBounds();
}
////////////////////////////////////////////////////////////////////////////////