Fix the location issue of media control when used other formats
authorSeonae Kim <sunaeluv.kim@samsung.com>
Thu, 11 Apr 2013 17:21:23 +0000 (02:21 +0900)
committerGerrit Code Review <gerrit2@kim11>
Fri, 12 Apr 2013 00:57:21 +0000 (09:57 +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: I7b011937b947383131ec64300a8b71a4563ff0ab

Source/WebCore/css/mediaControlsTizenFullscreenHorizontal.css
Source/WebCore/css/mediaControlsTizenFullscreenVertical.css
Source/WebCore/html/shadow/MediaControlRootElement.cpp

index b8b9597..1a16557 100755 (executable)
@@ -28,7 +28,7 @@
 
 
 video:-webkit-full-screen::-webkit-media-controls-panel {
-    position: relative;
+    position: fixed;
     left: 0px;
     bottom: 0px;
     width: 1280px;
index ca4a9e7..ca9b971 100755 (executable)
@@ -28,7 +28,7 @@
 
 
 video:-webkit-full-screen::-webkit-media-controls-panel {
-    position: relative;
+    position: fixed;
     left: 0px;
     bottom: 0px;
     width: 720px;
index 2efacd7..3c87507 100644 (file)
@@ -526,7 +526,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()) {
@@ -556,7 +558,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.