| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #include "config.h" | 30 #include "config.h" |
| 31 #include "core/html/shadow/MediaControlElements.h" | 31 #include "core/html/shadow/MediaControlElements.h" |
| 32 | 32 |
| 33 #include "RuntimeEnabledFeatures.h" | |
| 34 #include "bindings/v8/ExceptionStatePlaceholder.h" | 33 #include "bindings/v8/ExceptionStatePlaceholder.h" |
| 35 #include "core/dom/DOMTokenList.h" | 34 #include "core/dom/DOMTokenList.h" |
| 36 #include "core/dom/FullscreenElementStack.h" | 35 #include "core/dom/FullscreenElementStack.h" |
| 37 #include "core/dom/shadow/ShadowRoot.h" | 36 #include "core/dom/shadow/ShadowRoot.h" |
| 38 #include "core/events/MouseEvent.h" | 37 #include "core/events/MouseEvent.h" |
| 39 #include "core/frame/LocalFrame.h" | 38 #include "core/frame/LocalFrame.h" |
| 40 #include "core/html/HTMLVideoElement.h" | 39 #include "core/html/HTMLVideoElement.h" |
| 41 #include "core/html/MediaController.h" | 40 #include "core/html/MediaController.h" |
| 42 #include "core/html/shadow/MediaControls.h" | 41 #include "core/html/shadow/MediaControls.h" |
| 43 #include "core/html/track/TextTrack.h" | 42 #include "core/html/track/TextTrack.h" |
| 44 #include "core/html/track/vtt/VTTRegionList.h" | 43 #include "core/html/track/vtt/VTTRegionList.h" |
| 45 #include "core/page/EventHandler.h" | 44 #include "core/page/EventHandler.h" |
| 46 #include "core/rendering/RenderMediaControlElements.h" | 45 #include "core/rendering/RenderMediaControlElements.h" |
| 47 #include "core/rendering/RenderSlider.h" | 46 #include "core/rendering/RenderSlider.h" |
| 48 #include "core/rendering/RenderTheme.h" | 47 #include "core/rendering/RenderTheme.h" |
| 49 #include "core/rendering/RenderVideo.h" | 48 #include "core/rendering/RenderVideo.h" |
| 49 #include "platform/RuntimeEnabledFeatures.h" |
| 50 | 50 |
| 51 namespace WebCore { | 51 namespace WebCore { |
| 52 | 52 |
| 53 using namespace HTMLNames; | 53 using namespace HTMLNames; |
| 54 | 54 |
| 55 static const AtomicString& getMediaControlCurrentTimeDisplayElementShadowPseudoI
d(); | 55 static const AtomicString& getMediaControlCurrentTimeDisplayElementShadowPseudoI
d(); |
| 56 static const AtomicString& getMediaControlTimeRemainingDisplayElementShadowPseud
oId(); | 56 static const AtomicString& getMediaControlTimeRemainingDisplayElementShadowPseud
oId(); |
| 57 | 57 |
| 58 // If you change any of the following fade durations, then also update the | 58 // If you change any of the following fade durations, then also update the |
| 59 // corresponding values in LayoutTests/media/media-controls.js. | 59 // corresponding values in LayoutTests/media/media-controls.js. |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 float fontSize = smallestDimension * 0.05f; | 676 float fontSize = smallestDimension * 0.05f; |
| 677 if (fontSize != m_fontSize) { | 677 if (fontSize != m_fontSize) { |
| 678 m_fontSize = fontSize; | 678 m_fontSize = fontSize; |
| 679 setInlineStyleProperty(CSSPropertyFontSize, fontSize, CSSPrimitiveValue:
:CSS_PX); | 679 setInlineStyleProperty(CSSPropertyFontSize, fontSize, CSSPrimitiveValue:
:CSS_PX); |
| 680 } | 680 } |
| 681 } | 681 } |
| 682 | 682 |
| 683 // ---------------------------- | 683 // ---------------------------- |
| 684 | 684 |
| 685 } // namespace WebCore | 685 } // namespace WebCore |
| OLD | NEW |