Don't hide contorls of audio by click event.
authoreojin.ham <eojin.ham@samsung.com>
Sun, 14 Apr 2013 07:10:20 +0000 (16:10 +0900)
committerGerrit Code Review <gerrit2@kim11>
Mon, 15 Apr 2013 04:58:58 +0000 (13:58 +0900)
[Title] Don't hide contorls of audio by click event.
[Issue#] n/a
[Problem] Controls of audio can be hided when user touch outside of controls .
[Cause] We change view status of controls when click event occur in media element's render area.
[Solution] Don't hide contorls of audio by click event.
           We don't need to hide controls of audio.

Change-Id: If9a62b7a1647b74084c958807f3cca3c6fcee737

Source/WebCore/html/shadow/MediaControlRootElement.cpp

index 7ebc452..9453469 100644 (file)
@@ -594,7 +594,7 @@ void MediaControlRootElement::defaultEventHandler(Event* event)
     MediaControls::defaultEventHandler(event);
 
 #if ENABLE(TIZEN_GSTREAMER_VIDEO)
-    if (event->type() == eventNames().clickEvent) {
+    if (event->type() == eventNames().clickEvent && m_mediaController->hasVideo()) {
         if (!containsRelatedTarget(event)) {
             if (m_panel->isOpaque())
                 makeTransparent();