Bug 1153686: Remove redundant mMediaSize member. r=roc
This commit is contained in:
@@ -52,7 +52,8 @@ HTMLVideoElement::~HTMLVideoElement()
|
||||
|
||||
nsresult HTMLVideoElement::GetVideoSize(nsIntSize* size)
|
||||
{
|
||||
if (mMediaSize.width == -1 && mMediaSize.height == -1) {
|
||||
if (mMediaInfo.mVideo.mDisplay.width == 0 &&
|
||||
mMediaInfo.mVideo.mDisplay.height == 0) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
@@ -60,8 +61,8 @@ nsresult HTMLVideoElement::GetVideoSize(nsIntSize* size)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
size->height = mMediaSize.height;
|
||||
size->width = mMediaSize.width;
|
||||
size->height = mMediaInfo.mVideo.mDisplay.height;
|
||||
size->width = mMediaInfo.mVideo.mDisplay.width;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user