Bug 1159144 - check (-1, -1) for invalid video size. r=jya.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user