Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: content/renderer/render_widget.cc

Issue 2148463002: Remove rootWindowRect from WebWidgetClient and move it to WebViewClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_widget.h ('k') | third_party/WebKit/public/web/WebViewClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 7797b31cf3041a4f58b09656ab2a484985418220..48880ad80c9f6555d9e42761fb80d05806838f42 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1315,7 +1315,7 @@ void RenderWidget::SetPendingWindowRect(const WebRect& rect) {
pending_window_rect_count_++;
}
-WebRect RenderWidget::rootWindowRect() {
+gfx::Rect RenderWidget::RootWindowRect() {
if (pending_window_rect_count_) {
// NOTE(mbelshe): If there is a pending_window_rect_, then getting
// the RootWindowRect is probably going to return wrong results since the
@@ -1717,8 +1717,8 @@ void RenderWidget::DidAutoResize(const gfx::Size& new_size) {
size_ = gfx::Size(new_size_in_window.width, new_size_in_window.height);
if (resizing_mode_selector_->is_synchronous_mode()) {
- gfx::Rect new_pos(rootWindowRect().x, rootWindowRect().y, size_.width(),
- size_.height());
+ gfx::Rect new_pos(RootWindowRect().x(), RootWindowRect().y(),
+ size_.width(), size_.height());
view_screen_rect_ = new_pos;
window_screen_rect_ = new_pos;
}
« no previous file with comments | « content/renderer/render_widget.h ('k') | third_party/WebKit/public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698