Changeset 124552 in webkit


Ignore:
Timestamp:
Aug 2, 2012 7:40:14 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Fix wrong assigned value of BatteryStatus
https://bugs.webkit.org/show_bug.cgi?id=93058

Patch by Kihong Kwon <kihong.kwon@samsung.com> on 2012-08-02
Reviewed by Kentaro Hara.

There is a wrong change in the bug 92964.
property variable have to be used after assigned value in the setBatteryClient.

  • platform/efl/BatteryProviderEfl.cpp:

(WebCore::BatteryProviderEfl::setBatteryClient):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r124550 r124552  
     12012-08-02  Kihong Kwon  <kihong.kwon@samsung.com>
     2
     3        [EFL] Fix wrong assigned value of BatteryStatus
     4        https://bugs.webkit.org/show_bug.cgi?id=93058
     5
     6        Reviewed by Kentaro Hara.
     7
     8        There is a wrong change in the bug 92964.
     9        property variable have to be used after assigned value in the setBatteryClient.
     10
     11        * platform/efl/BatteryProviderEfl.cpp:
     12        (WebCore::BatteryProviderEfl::setBatteryClient):
     13
    1142012-08-02  Arvid Nilsson  <anilsson@rim.com>
    215
  • trunk/Source/WebCore/platform/efl/BatteryProviderEfl.cpp

    r124450 r124552  
    153153    }
    154154
    155     double level = property->val.d / 100;
    156155    bool levelChanged = false;
    157 
    158156    property = static_cast<E_Ukit_Property*>(eina_hash_find(eukitPropertyNames->properties, "Percentage"));
    159157    if (!property)
    160158        return;
     159
     160    double level = property->val.d / 100;
    161161    if (!clientBatteryStatus || clientBatteryStatus->level() != level)
    162162        levelChanged = true;
Note: See TracChangeset for help on using the changeset viewer.