Bug 1153049: Part5. Simplify retrieval of HTMLVideoElement dimensions. r=cpearce

This commit is contained in:
Jean-Yves Avenard
2015-04-14 15:17:55 +10:00
parent fa102c035f
commit f50ed5b16c
2 changed files with 3 additions and 4 deletions

View File

@@ -52,8 +52,7 @@ HTMLVideoElement::~HTMLVideoElement()
nsresult HTMLVideoElement::GetVideoSize(nsIntSize* size)
{
if (mMediaInfo.mVideo.mDisplay.width == 0 &&
mMediaInfo.mVideo.mDisplay.height == 0) {
if (!mMediaInfo.HasVideo()) {
return NS_ERROR_FAILURE;
}