Changeset 162391 in webkit


Ignore:
Timestamp:
Jan 20, 2014 4:51:08 PM (10 years ago)
Author:
Alan Bujtas
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):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r162373 r162391  
     12014-01-20  Zalan Bujtas  <zalan@apple.com>
     2
     3        Force float division when calculating CSS px value.
     4
     5        Reviewed by Simon Fraser.
     6
     7        Note that in Python 3, this is the default behavior.
     8
     9        * lldb/lldb_webkit.py:
     10        (WebCoreLayoutUnitProvider.to_string):
     11
    1122014-01-20  Alexey Proskuryakov  <ap@apple.com>
    213
  • trunk/Tools/lldb/lldb_webkit.py

    r162297 r162391  
    213213        # denominator = maxint / current infinite width value
    214214        denominator = int(2147483647 / infiniteSize)
    215         return "%gpx (%d)" % (layoutUnitValue / denominator, layoutUnitValue)
     215        return "%gpx (%d)" % (float(layoutUnitValue) / denominator, layoutUnitValue)
    216216
    217217
Note: See TracChangeset for help on using the changeset viewer.