Index: Source/core/rendering/RenderVideo.cpp |
diff --git a/Source/core/rendering/RenderVideo.cpp b/Source/core/rendering/RenderVideo.cpp |
index 1dae5a6ab408c00d7b75498b507b7013aed93bfb..e50da3d58303f1fe9bbb2d77d8ef29a0fcf8701a 100644 |
--- a/Source/core/rendering/RenderVideo.cpp |
+++ b/Source/core/rendering/RenderVideo.cpp |
@@ -97,9 +97,9 @@ LayoutSize RenderVideo::calculateIntrinsicSize() |
// The intrinsic height of a video element's playback area is the intrinsic height |
// of the video resource, if that is available; otherwise it is the intrinsic |
// height of the poster frame, if that is available; otherwise it is 150 CSS pixels. |
- MediaPlayer* player = mediaElement()->player(); |
- if (player && video->readyState() >= HTMLVideoElement::HAVE_METADATA) { |
- LayoutSize size = player->naturalSize(); |
+ blink::WebMediaPlayer* webMediaPlayer = mediaElement()->webMediaPlayer(); |
+ if (webMediaPlayer && video->readyState() >= HTMLVideoElement::HAVE_METADATA) { |
+ IntSize size = webMediaPlayer->naturalSize(); |
if (!size.isEmpty()) |
return size; |
} |