Play area should not be exceeded to the entire timeline.
authoreojin.ham <eojin.ham@samsung.com>
Sat, 4 May 2013 11:12:15 +0000 (20:12 +0900)
committerGerrit Code Review <gerrit2@kim11>
Mon, 6 May 2013 02:32:01 +0000 (11:32 +0900)
[Title] Play area should not be exceeded to the entire timeline.
[Issue#] N/A
[Problem] If the duration value is smaller than actual value, play area exceed to the entire timeline.
[Cause] Didn't check max limit when draw play area.
[Solution] Set max limit when draw play area in timeline.

Change-Id: I7cb68df534f1f2c1ea5eeeb24eb63493c5ae917b

Source/WebCore/platform/efl/RenderThemeEfl.cpp

index 6800103..4fac9e9 100755 (executable)
@@ -1370,6 +1370,9 @@ bool RenderThemeEfl::paintMediaSliderTrack(RenderObject* object, const PaintInfo
 
 #if ENABLE(TIZEN_GSTREAMER_VIDEO)
     float currentTime = mediaElement->currentTime();
+    if (currentTime > mediaDuration)
+        currentTime = mediaDuration;
+
     int width = (currentTime * totalWidth) / mediaDuration;
     if (width > 0)
     {