Index: webkit/glue/webplugin_impl.cc |
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc |
index 4b3cdb76f62d367fc0018f8764db6fcc243a7802..fdaf6f0388bbc43e92d5211eab0873bc6854ee4e 100644 |
--- a/webkit/glue/webplugin_impl.cc |
+++ b/webkit/glue/webplugin_impl.cc |
@@ -706,19 +706,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(); |