diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 20:56:57 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 20:56:57 +0000 |
commit | d5c1af6b0da21c11e9327375d18fcd528023c7ad (patch) | |
tree | 2dcd4cb0b0a60a21c903741262ab88887347d93a /webkit/glue/webplugin_impl.cc | |
parent | e368e2bd7cf84dca893d6df74dca156d38849d22 (diff) | |
download | chromium_src-d5c1af6b0da21c11e9327375d18fcd528023c7ad.zip chromium_src-d5c1af6b0da21c11e9327375d18fcd528023c7ad.tar.gz chromium_src-d5c1af6b0da21c11e9327375d18fcd528023c7ad.tar.bz2 |
Get windowed plugins (Flash) limping along on Linux.
We still crash when you navigate away from the page.
(PS: the plan is to unfork the _gtk.cc file once it gets closer to what we want, so you don't need to look at that too closely. I just wanted to check in what I have since it's getting big.)
Review URL: http://codereview.chromium.org/19413
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9170 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webplugin_impl.cc')
-rw-r--r-- | webkit/glue/webplugin_impl.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc index deb2ff9..2ebe5f5 100644 --- a/webkit/glue/webplugin_impl.cc +++ b/webkit/glue/webplugin_impl.cc @@ -702,19 +702,20 @@ void WebPluginImpl::paint(WebCore::GraphicsContext* gc, static_cast<float>(origin.y())); #if defined(OS_WIN) - // HDC is only used when in windowless mode. - HDC hdc = gc->platformContext()->canvas()->beginPlatformPaint(); + // Note that HDC is only used when in windowless mode. + HDC dc = gc->platformContext()->canvas()->beginPlatformPaint(); #else - NOTIMPLEMENTED(); + // TODO(port): the equivalent of the above. + void* dc = NULL; // Temporary, to reduce ifdefs. #endif WebCore::IntRect window_rect = WebCore::IntRect(view->contentsToWindow(damage_rect.location()), damage_rect.size()); -#if defined(OS_WIN) - delegate_->Paint(hdc, webkit_glue::FromIntRect(window_rect)); + delegate_->Paint(dc, webkit_glue::FromIntRect(window_rect)); +#if defined(OS_WIN) gc->platformContext()->canvas()->endPlatformPaint(); #endif gc->restore(); |