diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 23:19:14 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 23:19:14 +0000 |
commit | 699ab0da64a44444bc99108592004d1354f5f89f (patch) | |
tree | 05dd618d341567e26dc303b56baac155e5fe2d1a /webkit/glue/webframe_impl.cc | |
parent | b547fd44ca39e90e6416da8a5ffc040fa9d2446c (diff) | |
download | chromium_src-699ab0da64a44444bc99108592004d1354f5f89f.zip chromium_src-699ab0da64a44444bc99108592004d1354f5f89f.tar.gz chromium_src-699ab0da64a44444bc99108592004d1354f5f89f.tar.bz2 |
Add transparency support to RenderWidgetHostView.
This is used to make the background behind toolstrips 'shine
through' them. It isn't possible to make them really transparent
due to cleartype (cleartype must know the pixels behind the text
to work), so instead we paint the background we want behind the
transparent webview.
Review URL: http://codereview.chromium.org/88076
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14378 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframe_impl.cc')
-rw-r--r-- | webkit/glue/webframe_impl.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc index 6c55b48..1d21d0a 100644 --- a/webkit/glue/webframe_impl.cc +++ b/webkit/glue/webframe_impl.cc @@ -1532,6 +1532,9 @@ void WebFrameImpl::CreateFrameView() { frame_->setView(view); + if (webview_impl_->GetIsTransparent()) + view->setTransparent(true); + // TODO(darin): The Mac code has a comment about this possibly being // unnecessary. See installInFrame in WebCoreFrameBridge.mm if (frame_->ownerRenderer()) |