Title: [124552] trunk/Source/WebCore
Revision
124552
Author
[email protected]
Date
2012-08-02 19:40:14 -0700 (Thu, 02 Aug 2012)

Log Message

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

Patch by Kihong Kwon <[email protected]> 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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (124551 => 124552)


--- trunk/Source/WebCore/ChangeLog	2012-08-03 02:35:41 UTC (rev 124551)
+++ trunk/Source/WebCore/ChangeLog	2012-08-03 02:40:14 UTC (rev 124552)
@@ -1,3 +1,16 @@
+2012-08-02  Kihong Kwon  <[email protected]>
+
+        [EFL] Fix wrong assigned value of BatteryStatus
+        https://bugs.webkit.org/show_bug.cgi?id=93058
+
+        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):
+
 2012-08-02  Arvid Nilsson  <[email protected]>
 
         [BlackBerry] Add default implementation of GraphicsLayerClient::contentsVisible()

Modified: trunk/Source/WebCore/platform/efl/BatteryProviderEfl.cpp (124551 => 124552)


--- trunk/Source/WebCore/platform/efl/BatteryProviderEfl.cpp	2012-08-03 02:35:41 UTC (rev 124551)
+++ trunk/Source/WebCore/platform/efl/BatteryProviderEfl.cpp	2012-08-03 02:40:14 UTC (rev 124552)
@@ -152,12 +152,12 @@
         dischargingTime = property->val.x;
     }
 
-    double level = property->val.d / 100;
     bool levelChanged = false;
-
     property = static_cast<E_Ukit_Property*>(eina_hash_find(eukitPropertyNames->properties, "Percentage"));
     if (!property)
         return;
+
+    double level = property->val.d / 100;
     if (!clientBatteryStatus || clientBatteryStatus->level() != level)
         levelChanged = true;
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to