Commit c615b648 authored by zalan@apple.com's avatar zalan@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):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162391 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 66ae4dc4
2014-01-20 Zalan Bujtas <zalan@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 <ap@apple.com>
build.webkit.org/dashboard should display information about patches in EWS
......
......@@ -212,7 +212,7 @@ class WebCoreLayoutUnitProvider:
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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment