<?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>126664</bug_id>
          
          <creation_ts>2014-01-08 14:01:04 -0800</creation_ts>
          <short_desc>Subpixel layout: LayoutUnit::fromFloatFloor needs flooring the CSS pixel value.</short_desc>
          <delta_ts>2014-01-14 15:53:02 -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>INVALID</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>
          
          <blocked>126283</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="alan">zalan</reporter>
          <assigned_to name="alan">zalan</assigned_to>
          <cc>jonlee</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>965632</commentid>
    <comment_count>0</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2014-01-08 14:01:04 -0800</bug_when>
    <thetext>HitTestLocation operates on flooredLayoutPoint which calls fromFloatFloor() to floor the LayoutUnit values. This produces different values when subpixel is on and may result in hitting different part of the document .

failed case: (hittesting on a transformed render layer&apos;s content) 
fast/html/regions/overflow-region-transform.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965662</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2014-01-08 15:32:05 -0800</bug_when>
    <thetext>fast/regions/overflow-region-transform.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>965668</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2014-01-08 15:46:21 -0800</bug_when>
    <thetext>Needs some debugging to see what the issues are.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>967903</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-01-14 10:26:00 -0800</bug_when>
    <thetext>&lt;rdar://problem/15815563&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>968076</commentid>
    <comment_count>4</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2014-01-14 15:52:45 -0800</bug_when>
    <thetext>the current behavior is correct as snapping any user generated input (even after a transform) would generate false results.
1. user clicks at position x,y
2. after applying the render transform, it gets the value of 11.6px float.
3. the pixelsnaped value is -&gt; 12(*64)=768, while normal rounding value is -&gt; round(11.6*64)=742.
4. This pixelsnapped value would make the hittest code find the layer painted at 768/64=12px, while the user clicked at 11.6px (after transform)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>