| Index: webkit/api/src/WebMediaPlayerClientImpl.cpp
|
| diff --git a/webkit/api/src/WebMediaPlayerClientImpl.cpp b/webkit/api/src/WebMediaPlayerClientImpl.cpp
|
| index 60e96564d71d0c00db303dd5d565cded57cb0606..08abcd25a289e2911e791ada428045e09975d49e 100644
|
| --- a/webkit/api/src/WebMediaPlayerClientImpl.cpp
|
| +++ b/webkit/api/src/WebMediaPlayerClientImpl.cpp
|
| @@ -330,7 +330,10 @@ void WebMediaPlayerClientImpl::setSize(const IntSize& size)
|
|
|
| void WebMediaPlayerClientImpl::paint(GraphicsContext* context, const IntRect& rect)
|
| {
|
| - if (m_webMediaPlayer.get()) {
|
| + // Normally GraphicsContext operations do nothing when painting is disabled.
|
| + // Since we're accessing platformContext() directly we have to manually
|
| + // check.
|
| + if (m_webMediaPlayer.get() && !context->paintingDisabled()) {
|
| #if WEBKIT_USING_SKIA
|
| m_webMediaPlayer->paint(context->platformContext()->canvas(), rect);
|
| #elif WEBKIT_USING_CG
|
|
|