Fix the location issue of media control when used other formats
authorSeonae Kim <sunaeluv.kim@samsung.com>
Sun, 14 Apr 2013 07:44:40 +0000 (16:44 +0900)
committerGerrit Code Review <gerrit2@kim11>
Thu, 18 Apr 2013 02:04:38 +0000 (11:04 +0900)
[Title] Fix location issue of media control when used other formats
[Issue] N/A
[Problem] If other formats are used(ogg, webm), the control location is changed.
[Cause] We did not consider other formats.
[Solution] A position property of media panel is fixed and a flag moving panel is unset to false.

Change-Id: I12b9cd3165aa0af4e484bbb0bb0aaf7d2fd6b706

Source/WebCore/html/shadow/MediaControlRootElement.cpp

index f488ca5..b40b4dc 100644 (file)
@@ -549,7 +549,9 @@ void MediaControlRootElement::enteredFullscreen()
         m_returnToRealTimeButton->hide();
     }
 
+#if !ENABLE(TIZEN_FULLSCREEN_API)
     m_panel->setCanBeDragged(true);
+#endif
     m_fullScreenButton->setIsFullscreen(true);
 
     if (Page* page = document()->page()) {
@@ -577,7 +579,9 @@ void MediaControlRootElement::exitedFullscreen()
     m_seekForwardButton->show();
     m_returnToRealTimeButton->show();
 
+#if !ENABLE(TIZEN_FULLSCREEN_API)
     m_panel->setCanBeDragged(false);
+#endif
     m_fullScreenButton->setIsFullscreen(false);
 
     // We will keep using the panel, but we want it to go back to the standard position.