Bug 560059 - Correct video dimensions on failed load. r=roc
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<title>Video dimensions</title>
|
||||||
|
<video style="border: thin solid black;" width="300" height="150"></video>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<title>Video dimensions</title>
|
||||||
|
<video style="border: thin solid black;"></video>
|
||||||
@@ -9,4 +9,5 @@
|
|||||||
== 468263-2.html 468263-2-alternate-ref.html
|
== 468263-2.html 468263-2-alternate-ref.html
|
||||||
== 484200-1.html 484200-1-ref.html
|
== 484200-1.html 484200-1-ref.html
|
||||||
== 557840.html 557840-ref.html
|
== 557840.html 557840-ref.html
|
||||||
|
== 560059-video-dimensions.html 560059-video-dimensions-ref.html
|
||||||
== href-attr-change-restyles.html href-attr-change-restyles-ref.html
|
== href-attr-change-restyles.html href-attr-change-restyles-ref.html
|
||||||
|
|||||||
@@ -528,7 +528,7 @@ nsVideoFrame::GetVideoIntrinsicSize(nsIRenderingContext *aRenderingContext)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!HasVideoData()) {
|
if (!HasVideoElement()) {
|
||||||
if (!aRenderingContext || !mFrames.FirstChild()) {
|
if (!aRenderingContext || !mFrames.FirstChild()) {
|
||||||
// We just want our intrinsic ratio, but audio elements need no
|
// We just want our intrinsic ratio, but audio elements need no
|
||||||
// intrinsic ratio, so just return "no ratio". Also, if there's
|
// intrinsic ratio, so just return "no ratio". Also, if there's
|
||||||
|
|||||||
Reference in New Issue
Block a user