Changeset 88985 in webkit


Ignore:
Timestamp:
Jun 15, 2011 5:37:01 PM (13 years ago)
Author:
gyuyoung.kim@samsung.com
Message:

2011-06-15 Gyuyoung Kim <gyuyoung.kim@samsung.com>

Reviewed by Kent Tamura.

[EFL] Implement animationXXX functions for Progress Tag
https://bugs.webkit.org/show_bug.cgi?id=62713

Progress tag need to implement acnimationXXX functions in order to show animation of
progress tag. Because, RenderProgress decides to show update progress bar's animation
according to the functions.

  • platform/efl/RenderThemeEfl.cpp: (WebCore::RenderThemeEfl::animationRepeatIntervalForProgressBar): (WebCore::RenderThemeEfl::animationDurationForProgressBar):
  • platform/efl/RenderThemeEfl.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r88984 r88985  
     12011-06-15  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Reviewed by Kent Tamura.
     4
     5        [EFL] Implement animationXXX functions for Progress Tag
     6        https://bugs.webkit.org/show_bug.cgi?id=62713
     7
     8        Progress tag need to implement acnimationXXX functions in order to show animation of
     9        progress tag. Because, RenderProgress decides to show update progress bar's animation
     10        according to the functions.
     11
     12        * platform/efl/RenderThemeEfl.cpp:
     13        (WebCore::RenderThemeEfl::animationRepeatIntervalForProgressBar):
     14        (WebCore::RenderThemeEfl::animationDurationForProgressBar):
     15        * platform/efl/RenderThemeEfl.h:
     16
    1172011-06-15  Sam Weinig  <sam@webkit.org>
    218
  • trunk/Source/WebCore/platform/efl/RenderThemeEfl.cpp

    r88897 r88985  
    6262// TODO: as objects are webpage/user defined and they can be very large.
    6363#define RENDER_THEME_EFL_PART_CACHE_MAX 32
    64    
     64
     65// Constants for progress tag animation.
     66// These values have been copied from RenderThemeGtk.cpp
     67static const int progressAnimationFrames = 10;
     68static const double progressAnimationInterval = 0.125;
     69
    6570static const int sliderThumbWidth = 12;
    6671static const int sliderThumbHeight = 12;
    67 
    6872#if ENABLE(VIDEO)
    6973static const int mediaSliderHeight = 14;
     
    10931097}
    10941098
     1099double RenderThemeEfl::animationRepeatIntervalForProgressBar(RenderProgress*) const
     1100{
     1101    return progressAnimationInterval;
     1102}
     1103
     1104double RenderThemeEfl::animationDurationForProgressBar(RenderProgress*) const
     1105{
     1106    return progressAnimationInterval * progressAnimationFrames * 2; // "2" for back and forth;
     1107}
     1108
    10951109bool RenderThemeEfl::paintProgressBar(RenderObject* object, const PaintInfo& info, const IntRect& rect)
    10961110{
  • trunk/Source/WebCore/platform/efl/RenderThemeEfl.h

    r88788 r88985  
    167167    virtual void adjustProgressBarStyle(CSSStyleSelector*, RenderStyle*, Element*) const;
    168168    virtual bool paintProgressBar(RenderObject*, const PaintInfo&, const IntRect&);
     169    virtual double animationRepeatIntervalForProgressBar(RenderProgress*) const;
     170    virtual double animationDurationForProgressBar(RenderProgress*) const;
    169171#endif
    170172
Note: See TracChangeset for help on using the changeset viewer.