From: eojin.ham Date: Sun, 14 Apr 2013 07:10:20 +0000 (+0900) Subject: Don't hide contorls of audio by click event. X-Git-Tag: 2.1_release~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99397943808f0870ba01b05bd2adea6943e9b9a6;p=framework%2Fweb%2Fwebkit-efl.git Don't hide contorls of audio by click event. [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 --- diff --git a/Source/WebCore/html/shadow/MediaControlRootElement.cpp b/Source/WebCore/html/shadow/MediaControlRootElement.cpp index 7ebc452..9453469 100644 --- a/Source/WebCore/html/shadow/MediaControlRootElement.cpp +++ b/Source/WebCore/html/shadow/MediaControlRootElement.cpp @@ -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();