summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview_impl.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 23:04:48 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 23:04:48 +0000
commit7deaa81460cae8f40cbd3408a611527b2299c354 (patch)
treedf5bd337270d024838b2b83595c970156e741f85 /webkit/glue/webview_impl.cc
parent12a7aa885e5067665577bb86b20f004f0e8c57cb (diff)
downloadchromium_src-7deaa81460cae8f40cbd3408a611527b2299c354.zip
chromium_src-7deaa81460cae8f40cbd3408a611527b2299c354.tar.gz
chromium_src-7deaa81460cae8f40cbd3408a611527b2299c354.tar.bz2
Fix several painting glitches for toolstrips.
* Reset HWND size when HWNDHtmlView changes size. The two should always be in sync. * Race: We might already have frames when RenderWidget receives a new background, need to set these to transparent too. * Race: Toolstrip background not always available by the time ExtensionToolstrip is constucted * Make images line up correctly for toolstrip buttons. Review URL: http://codereview.chromium.org/99042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.cc')
-rw-r--r--webkit/glue/webview_impl.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc
index e06a213..7e41aa9 100644
--- a/webkit/glue/webview_impl.cc
+++ b/webkit/glue/webview_impl.cc
@@ -1828,6 +1828,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;
}