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

Unified Diff: chrome/browser/chromeos/login/webui_login_view.cc

Issue 274453002: Remove RenderWidget::SetBackground, change IPC to pass a bool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-setbackground: nomac Created 6 years, 7 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: chrome/browser/chromeos/login/webui_login_view.cc
diff --git a/chrome/browser/chromeos/login/webui_login_view.cc b/chrome/browser/chromeos/login/webui_login_view.cc
index 1a731cbca269d226f73054b07f90d9df377d764d..69759509096e7342b09a993775daa11b02bff1fb 100644
--- a/chrome/browser/chromeos/login/webui_login_view.cc
+++ b/chrome/browser/chromeos/login/webui_login_view.cc
@@ -260,13 +260,7 @@ void WebUILoginView::LoadURL(const GURL & url) {
// TODO(nkostylev): Use WebContentsObserver::RenderViewCreated to track
// when RenderView is created.
- // Use a background with transparency to trigger transparency in Webkit.
- SkBitmap background;
- background.setConfig(SkBitmap::kARGB_8888_Config, 1, 1);
- background.allocPixels();
- background.eraseARGB(0x00, 0x00, 0x00, 0x00);
- content::RenderViewHost* host = GetWebContents()->GetRenderViewHost();
- host->GetView()->SetBackground(background);
+ GetWebContents()->GetRenderViewHost()->GetView()->SetBackgroundOpaque(false);
}
content::WebUI* WebUILoginView::GetWebUI() {
« no previous file with comments | « chrome/browser/chromeos/first_run/first_run_view.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698