2011-03-22 Jer Noble <jer.noble@apple.com>
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 27 Mar 2011 00:15:48 +0000 (00:15 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 27 Mar 2011 00:15:48 +0000 (00:15 +0000)
commita066cb790b4db554ea54b79100be2691a5e5132f
tree6609dcd8f70ef46572fd8df103820f44e6461532
parent83347687d80fda0d016a71c14b28608544a5cae5
2011-03-22  Jer Noble  <jer.noble@apple.com>

        Reviewed by Eric Carlson.

        Media controls must use full screen style when in new full screen mode.
        https://bugs.webkit.org/show_bug.cgi?id=56851

        Add new full screen styles for the full screen media elements.

        * DerivedSources.make: Add fullScreenQuickTime.css.
        * WebCore.xcodeproj/project.pbxproj: Ditto.
        * css/CSSStyleSelector.cpp: Removed loadFullScreenRulesIfNeeded().
        (WebCore::CSSStyleSelector::CSSStyleSelector): Ditto.
        (WebCore::CSSStyleSelector::styleForElement): Load full screen rules
            if needed.
        * css/fullscreenQuickTime.css: Added.
        * css/mediaControls.css:
        * html/shadow/MediaControls.cpp:
        (WebCore::isFullScreen): Added.
        (WebCore::MediaControls::create): Add new full screen volume controls.
        (WebCore::MediaControls::updateStyle): Ditto.
        (WebCore::MediaControls::update): Ditto.
        (WebCore::MediaControls::updateVolumeSliderContainer): Ditto.
        (WebCore::MediaControls::forwardEvent): Ditto.
        * rendering/MediaControlElements.cpp:
        (WebCore::MediaControlFullscreenVolumeSliderElement::MediaControlFullscreenVolumeSliderElement): Added.
        (WebCore::MediaControlFullscreenVolumeSliderElement::create): Added.
        (WebCore::MediaControlFullscreenVolumeSliderElement::shadowPseudoId): Added.
        (WebCore::MediaControlFullscreenVolumeMinButtonElement::MediaControlFullscreenVolumeMinButtonElement): Addet
        (WebCore::MediaControlFullscreenVolumeMinButtonElement::create): Added.
        (WebCore::MediaControlFullscreenVolumeMinButtonElement::defaultEventHandler): Added.
        (WebCore::MediaControlFullscreenVolumeMinButtonElement::shadowPseudoId): Added.
        (WebCore::MediaControlFullscreenVolumeMaxButtonElement::MediaControlFullscreenVolumeMaxButtonElement): Added.
        (WebCore::MediaControlFullscreenVolumeMaxButtonElement::create): Added.
        (WebCore::MediaControlFullscreenVolumeMaxButtonElement::defaultEventHandler): Added.
        (WebCore::MediaControlFullscreenVolumeMaxButtonElement::shadowPseudoId): Added.
        * rendering/MediaControlElements.h:
            Added m_overridePosition.
        (WebCore::MediaControlVolumeSliderContainerElement::setOverridesPosition): Added.
        * rendering/MediaControlElements.h:
        (WebCore::MediaControlVolumeSliderContainerElement::overridesPosition): Added.
        * rendering/RenderTheme.h:
        (WebCore::RenderTheme::extraFullScreenStyleSheet): Added.
        * rendering/RenderThemeMac.h:
        * rendering/RenderThemeMac.mm:
        (WebCore::RenderThemeMac::extraFullScreenStyleSheet): Added.
        (WebCore::RenderThemeMac::shouldRenderMediaControlPart): Render seek forward and backward
            buttons.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@82053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.make
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/css/CSSStyleSelector.cpp
Source/WebCore/css/fullscreenQuickTime.css [new file with mode: 0644]
Source/WebCore/css/mediaControls.css
Source/WebCore/html/HTMLMediaElement.cpp
Source/WebCore/html/HTMLMediaElement.h
Source/WebCore/html/shadow/MediaControls.cpp
Source/WebCore/html/shadow/MediaControls.h
Source/WebCore/rendering/MediaControlElements.cpp
Source/WebCore/rendering/MediaControlElements.h
Source/WebCore/rendering/RenderTheme.h
Source/WebCore/rendering/RenderThemeMac.h
Source/WebCore/rendering/RenderThemeMac.mm