Bug 1159144 - check (-1, -1) for invalid video size. r=jya.

This commit is contained in:
JW Wang
2015-04-29 09:56:03 +08:00
parent 11041d00da
commit 687aadd9b4

View File

@@ -3892,7 +3892,7 @@ void HTMLMediaElement::UpdateMediaSize(const nsIntSize& aSize)
void HTMLMediaElement::UpdateInitialMediaSize(const nsIntSize& aSize)
{
if (mMediaInfo.mVideo.mDisplay == nsIntSize(0, 0)) {
if (!mMediaInfo.HasVideo()) {
UpdateMediaSize(aSize);
}
}