| Index: webkit/glue/webplugin_impl.cc
|
| ===================================================================
|
| --- webkit/glue/webplugin_impl.cc (revision 14606)
|
| +++ webkit/glue/webplugin_impl.cc (working copy)
|
| @@ -706,15 +706,12 @@
|
| gc->translate(static_cast<float>(origin.x()),
|
| static_cast<float>(origin.y()));
|
|
|
| -#if defined(OS_WIN) || defined(TOOLKIT_GTK)
|
| +#if defined(OS_WIN) || defined(OS_LINUX)
|
| // Note that |context| is only used when in windowless mode.
|
| gfx::NativeDrawingContext context =
|
| gc->platformContext()->canvas()->beginPlatformPaint();
|
| #elif defined(OS_MACOSX)
|
| gfx::NativeDrawingContext context = gc->platformContext();
|
| -#else
|
| - NOTIMPLEMENTED();
|
| - gfx::NativeDrawingContext context = NULL;
|
| #endif
|
|
|
| WebCore::IntRect window_rect =
|
| @@ -723,7 +720,7 @@
|
|
|
| delegate_->Paint(context, webkit_glue::FromIntRect(window_rect));
|
|
|
| -#if defined(OS_WIN) || defined(TOOLKIT_GTK)
|
| +#if defined(OS_WIN) || defined(OS_LINUX)
|
| gc->platformContext()->canvas()->endPlatformPaint();
|
| #endif
|
| gc->restore();
|
|
|