Chromium Code Reviews

Unified Diff: Source/core/rendering/RenderVideo.cpp

Issue 594533002: Replace HTMLMediaElement::isActive() with Node::inActiveDocument() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderVideo.cpp
diff --git a/Source/core/rendering/RenderVideo.cpp b/Source/core/rendering/RenderVideo.cpp
index c0e35adb304e63cf3092664efc725143de698f70..d1c8dd29dd22e229855c5e4d635dd84a208be174 100644
--- a/Source/core/rendering/RenderVideo.cpp
+++ b/Source/core/rendering/RenderVideo.cpp
@@ -179,7 +179,7 @@ void RenderVideo::updatePlayer()
if (!mediaPlayer)
return;
- if (!videoElement()->isActive())
+ if (!videoElement()->inActiveDocument())
return;
videoElement()->setNeedsCompositingUpdate();
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine