WebCore:
authoradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2007 00:08:37 +0000 (00:08 +0000)
committeradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2007 00:08:37 +0000 (00:08 +0000)
commita38f5d72b61c3239f9c27539a8b8168c5b489d03
tree5010d96d534f52058950c6cb63b4e61a73dd55ec
parentbaf9b0492840f664719c9d95c502caf21e4378a1
WebCore:

        Reviewed by Hyatt.

        Fix for <rdar://problem/5622464> controls should show up for audio element

        * css/html4.css: Added styles for audio controls.  This will need to be refined, since we may want a different look for audio controls.
        * html/HTMLMediaElement.cpp:
        (WebCore::HTMLMediaElement::attributeChanged): When the controls attribute changes detach and reattach if necessary.
        (WebCore::HTMLMediaElement::rendererIsNeeded): Added.
        (WebCore::HTMLMediaElement::createRenderer): Added.  Uses RenderMedia.
        * html/HTMLMediaElement.h:
        * rendering/RenderMedia.cpp: (WebCore::RenderMedia::RenderMedia): Added constructor that doesn't take intrinsic size.
        * rendering/RenderMedia.h:

LayoutTests:

        Reviewed by Hyatt.

        Test for <rdar://problem/5622464> controls should show up for audio element

        * media/audio-controls-rendering.html: Added.
        * platform/mac/media/audio-controls-rendering-expected.checksum: Added.
        * platform/mac/media/audio-controls-rendering-expected.png: Added.
        * platform/mac/media/audio-controls-rendering-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28417 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/audio-controls-rendering.html [new file with mode: 0644]
LayoutTests/platform/mac/media/audio-controls-rendering-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/media/audio-controls-rendering-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/media/audio-controls-rendering-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/css/html4.css
WebCore/html/HTMLMediaElement.cpp
WebCore/html/HTMLMediaElement.h
WebCore/rendering/RenderMedia.cpp
WebCore/rendering/RenderMedia.h