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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: save some vertical space, interactive_ui_tests are fixed by Peter's fix Created 9 years, 2 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
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 f57f9bce2cb6c781a387e7b8cf170e523793e725..e897c0c1c75fac201fc175a21f01a3b87ab89dde 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -6,8 +6,8 @@
#include "base/logging.h"
#include "content/browser/renderer_host/backing_store_skia.h"
-#include "content/browser/renderer_host/web_input_event_aura.h"
#include "content/browser/renderer_host/render_widget_host.h"
+#include "content/browser/renderer_host/web_input_event_aura.h"
#include "content/public/browser/native_web_keyboard_event.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
#include "ui/aura/desktop.h"
@@ -387,8 +387,8 @@ void RenderWidgetHostViewAura::OnPaint(gfx::Canvas* canvas) {
static_cast<BackingStoreSkia*>(backing_store)->SkiaShowRect(gfx::Point(),
canvas);
} else {
- canvas->FillRectInt(SK_ColorWHITE, 0, 0, window_->bounds().width(),
- window_->bounds().height());
+ canvas->FillRect(SK_ColorWHITE,
+ gfx::Rect(gfx::Point(), window_->bounds().size()));
}
}

Powered by Google App Engine
This is Rietveld 408576698