Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1215)

Unified Diff: webkit/api/src/WebMediaPlayerClientImpl.cpp

Issue 172095: Merge 25125 - Fixes crash when switching to new tabs containing audio/video e... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/src/WebMediaPlayerClientImpl.cpp
===================================================================
--- webkit/api/src/WebMediaPlayerClientImpl.cpp (revision 25135)
+++ webkit/api/src/WebMediaPlayerClientImpl.cpp (working copy)
@@ -326,7 +326,10 @@
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
Property changes on: webkit\api\src\WebMediaPlayerClientImpl.cpp
___________________________________________________________________
Modified: svn:mergeinfo
Merged /trunk/src/webkit/api/src/WebMediaPlayerClientImpl.cpp:r25125
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698