<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>78835</bug_id>
          
          <creation_ts>2012-02-16 13:22:32 -0800</creation_ts>
          <short_desc>Fix use of long long in FractionalLayoutUnit::setRawValue</short_desc>
          <delta_ts>2012-02-16 17:16:36 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>76571</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Emil A Eklund">eae</reporter>
          <assigned_to name="Emil A Eklund">eae</assigned_to>
          <cc>aroben</cc>
    
    <cc>eric</cc>
    
    <cc>leviw</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>558468</commentid>
    <comment_count>0</comment_count>
    <who name="Emil A Eklund">eae</who>
    <bug_when>2012-02-16 13:22:32 -0800</bug_when>
    <thetext>setRawValue(long long) which is called by the multiple operator has an assertion to verify that the resulting value is within the range of an int. This currently uses abs(long long) which isn&apos;t implemented on all platforms we support.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>558476</commentid>
    <comment_count>1</comment_count>
      <attachid>127434</attachid>
    <who name="Emil A Eklund">eae</who>
    <bug_when>2012-02-16 13:31:46 -0800</bug_when>
    <thetext>Created attachment 127434
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>558486</commentid>
    <comment_count>2</comment_count>
      <attachid>127434</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-02-16 13:44:24 -0800</bug_when>
    <thetext>Comment on attachment 127434
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=127434&amp;action=review

The rest looks fine.

&gt; Source/WebCore/platform/FractionalLayoutUnit.h:122
&gt; +        return value &lt; static_cast&lt;unsigned&gt;(std::numeric_limits&lt;int&gt;::max()) / kFixedPointDenominator;

Why is this necessary?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>558487</commentid>
    <comment_count>3</comment_count>
      <attachid>127434</attachid>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-02-16 13:46:15 -0800</bug_when>
    <thetext>Comment on attachment 127434
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=127434&amp;action=review

&gt;&gt; Source/WebCore/platform/FractionalLayoutUnit.h:122
&gt;&gt; +        return value &lt; static_cast&lt;unsigned&gt;(std::numeric_limits&lt;int&gt;::max()) / kFixedPointDenominator;
&gt; 
&gt; Why is this necessary?

Since value here is unsigned, you&apos;ll get a type warning when comparing them if you don&apos;t cast the int.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>558488</commentid>
    <comment_count>4</comment_count>
      <attachid>127434</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-02-16 13:46:57 -0800</bug_when>
    <thetext>Comment on attachment 127434
Patch

OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>558723</commentid>
    <comment_count>5</comment_count>
      <attachid>127434</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-02-16 17:16:32 -0800</bug_when>
    <thetext>Comment on attachment 127434
Patch

Clearing flags on attachment: 127434

Committed r108006: &lt;http://trac.webkit.org/changeset/108006&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>558724</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-02-16 17:16:36 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>127434</attachid>
            <date>2012-02-16 13:31:46 -0800</date>
            <delta_ts>2012-02-16 17:16:32 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-78835-20120216133145.patch</filename>
            <type>text/plain</type>
            <size>3072</size>
            <attacher name="Emil A Eklund">eae</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDEwNzk3NCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDI5IEBACisyMDEyLTAyLTE2ICBFbWlsIEEg
RWtsdW5kICA8ZWFlQGNocm9taXVtLm9yZz4KKworICAgICAgICBGaXggdXNlIG9mIGxvbmcgbG9u
ZyBpbiBGcmFjdGlvbmFsTGF5b3V0VW5pdDo6c2V0UmF3VmFsdWUKKyAgICAgICAgaHR0cHM6Ly9i
dWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTc4ODM1CisKKyAgICAgICAgUmV2aWV3ZWQg
YnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgQ2hhbmdlIHNldFJhd1ZhbHVlKGxvbmcgbG9u
ZykgdG8gY29tcGFyZSBhZ2FpbnN0IGludCBtaW4gYW5kIG1heCBpbnN0ZWFkCisgICAgICAgIG9m
IHVzaW5nIGFicyBhcyBub3QgYWxsIHBsYXRmb3JtcyB3ZSBzdXBwb3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