<?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>138554</bug_id>
          
          <creation_ts>2014-11-09 20:22:24 -0800</creation_ts>
          <short_desc>Assertion in border drawing code with this testcase</short_desc>
          <delta_ts>2015-01-05 16:09:32 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1047448</commentid>
    <comment_count>0</comment_count>
      <attachid>241270</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2014-11-09 20:22:24 -0800</bug_when>
    <thetext>Created attachment 241270
testcase

The attached test case, from bug 108619, asserts in border drawing code if you skip the geometry map assertion.

At:
y2 = roundToDevicePixel(y2, deviceScaleFactor);
y2 is 33554432, and comes back negative.

float foo = 33554432;
LayoutUnit bar(foo);
reproduces the issue.

At m_value = clampTo&lt;float&gt;(value * kFixedPointDenominator, static_cast&lt;float&gt;(INT_MIN), static_cast&lt;float&gt;(INT_MAX));

m_value becomes negative.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1057076</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-12-19 10:53:36 -0800</bug_when>
    <thetext>&lt;rdar://problem/19310242&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1058849</commentid>
    <comment_count>2</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2015-01-05 16:09:32 -0800</bug_when>
    <thetext>Can&apos;t repro border drawing assert after r177845. -&gt; bug 139888</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>241270</attachid>
            <date>2014-11-09 20:22:24 -0800</date>
            <delta_ts>2014-11-09 20:22:24 -0800</delta_ts>
            <desc>testcase</desc>
            <filename>layoutunit-overflow.html</filename>
            <type>text/html</type>
            <size>163</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxpbWcgaGVpZ2h0PSI0NDY2MDcwNzNweCI+CjxzdHlsZT4gCjwhW0NE
QVRBWyAKKiB7fQoqIHsKICAgIGRpc3BsYXk6dGFibGUtY2FwdGlvbjsKICAgIG91dGxpbmUtc3R5
bGU6cmlkZ2U7CiAgICBvdmVyZmxvdy14OmF1dG87ICAgIAp9Cl1dPgo8L3N0eWxlPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>