Audio file in video element has a size of 0x0 .
authoryael.aharon@nokia.com <yael.aharon@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Dec 2011 21:03:05 +0000 (21:03 +0000)
committeryael.aharon@nokia.com <yael.aharon@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Dec 2011 21:03:05 +0000 (21:03 +0000)
commit2b8b23a3f461f9bb94fbffbfbdbbc7957a5679b8
treeb04f6f2d07bf9456c2b5e86bd13a68a5cff6559f
parentd68745dc89a88a63bb04fe7e5e52ac7f58e4491b
Audio file in video element has a size of 0x0 .
https://bugs.webkit.org/show_bug.cgi?id=74738

Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

When the source of a video element has audio only, the intrinsic size of the video should
not be 0x0. Instead, it should be the same as as no media was loaded.

No new tests. An existing test is covering this case and was modified to reflect this change.

* rendering/RenderVideo.cpp:
(WebCore::RenderVideo::calculateIntrinsicSize):

LayoutTests:

Changed the expected result to reflect this change.

* media/audio-only-video-intrinsic-size-expected.txt:
* media/audio-only-video-intrinsic-size.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@103098 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/audio-only-video-intrinsic-size-expected.txt
LayoutTests/media/audio-only-video-intrinsic-size.html
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderVideo.cpp