Title: [162391] trunk/Tools
Revision
162391
Author
za...@apple.com
Date
2014-01-20 16:51:08 -0800 (Mon, 20 Jan 2014)

Log Message

Force float division when calculating CSS px value.

Reviewed by Simon Fraser.

Note that in Python 3, this is the default behavior.

* lldb/lldb_webkit.py:
(WebCoreLayoutUnitProvider.to_string):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (162390 => 162391)


--- trunk/Tools/ChangeLog	2014-01-21 00:46:17 UTC (rev 162390)
+++ trunk/Tools/ChangeLog	2014-01-21 00:51:08 UTC (rev 162391)
@@ -1,3 +1,14 @@
+2014-01-20  Zalan Bujtas  <za...@apple.com>
+
+        Force float division when calculating CSS px value.
+
+        Reviewed by Simon Fraser.
+
+        Note that in Python 3, this is the default behavior.
+
+        * lldb/lldb_webkit.py:
+        (WebCoreLayoutUnitProvider.to_string):
+
 2014-01-20  Alexey Proskuryakov  <a...@apple.com>
 
         build.webkit.org/dashboard should display information about patches in EWS

Modified: trunk/Tools/lldb/lldb_webkit.py (162390 => 162391)


--- trunk/Tools/lldb/lldb_webkit.py	2014-01-21 00:46:17 UTC (rev 162390)
+++ trunk/Tools/lldb/lldb_webkit.py	2014-01-21 00:51:08 UTC (rev 162391)
@@ -212,7 +212,7 @@
         infiniteSize = self.valobj.GetFrame().EvaluateExpression('IntRect::infiniteRect()').GetChildMemberWithName('m_size').GetChildMemberWithName('m_width').GetValueAsSigned(0)
         # denominator = maxint / current infinite width value
         denominator = int(2147483647 / infiniteSize)
-        return "%gpx (%d)" % (layoutUnitValue / denominator, layoutUnitValue)
+        return "%gpx (%d)" % (float(layoutUnitValue) / denominator, layoutUnitValue)
 
 
 class WebCoreLayoutSizeProvider:
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to