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

Unified Diff: webkit/glue/webview_impl.cc

Issue 99042: Fix several painting glitches for toolstrips. (Closed)
Patch Set: Review responses Created 11 years, 8 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: webkit/glue/webview_impl.cc
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc
index 0155b8b355f458cece2adb3c89a891b0c8d3a62f..0d6a74b286870610862fde315081fb8b3548fcd5 100644
--- a/webkit/glue/webview_impl.cc
+++ b/webkit/glue/webview_impl.cc
@@ -1827,6 +1827,14 @@ WebDevToolsAgentImpl* WebViewImpl::GetWebDevToolsAgentImpl() {
}
void WebViewImpl::SetIsTransparent(bool is_transparent) {
+ // Set any existing frames to be transparent.
+ WebCore::Frame* frame = page_->mainFrame();
+ while (frame) {
+ frame->view()->setTransparent(is_transparent);
+ frame = frame->tree()->traverseNext();
+ }
+
+ // Future frames check this to know whether to be transparent.
is_transparent_ = is_transparent;
}
« chrome/browser/views/hwnd_html_view.cc ('K') | « chrome/browser/views/hwnd_html_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698