<?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>250803</bug_id>
          
          <creation_ts>2023-01-18 16:00:47 -0800</creation_ts>
          <short_desc>Improve intersection precision in FloatPoint</short_desc>
          <delta_ts>2023-01-30 11:15:49 -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>New Bugs</component>
          <version>WebKit 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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mattwoodrow</cc>
    
    <cc>mmaxfield</cc>
    
    <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>1926449</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-18 16:00:47 -0800</bug_when>
    <thetext>Hi Team,

While going through Blink&apos;s commit, I came cross this interesting commit:

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/4fee9ba6e16e703f282b5460d999ba207842b4ef

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/platform/graphics/GeometryUtilities.cpp#56

Should we merge this and whether it will gain any benefit, appreciate if someone can share input?

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927190</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-21 18:56:15 -0800</bug_when>
    <thetext>It is inspired from this - https://github.com/servo/skia-snapshots/blob/master/skia/experimental/Intersection/LineIntersection.cpp#L43

as per commentary on Review and also from https://en.wikipedia.org/wiki/Line–line_intersection.

There were three tests requiring baseline after this:

One of them - related to border:

https://jsfiddle.net/nmL1g95c/show

In Safari, we have hairline gaps in Safari 16.2 &amp; STP161 while we don&apos;t have those in Chrome Canary 111.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928317</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-25 16:01:48 -0800</bug_when>
    <thetext>&lt;rdar://problem/104671777&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929010</commentid>
    <comment_count>3</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2023-01-27 11:36:38 -0800</bug_when>
    <thetext>This seems like a good change.

If we merge it, does it cause any tests to pass? It looks like it caused some Chrome tests to pass for them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929065</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-27 14:49:42 -0800</bug_when>
    <thetext>(In reply to Myles C. Maxfield from comment #3)
&gt; This seems like a good change.
&gt; 
&gt; If we merge it, does it cause any tests to pass? It looks like it caused
&gt; some Chrome tests to pass for them.

I haven&apos;t run it through EWS or any specific test suite but I have it as local testing on my local build since past two days and I tried to look into border radius, border shadow test cases with hairline gaps but it seems that it does not improve anything across them but it is just cleaner code as of right now.

Let me do PR in Draft and see if anything pop-up. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929475</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-30 11:15:44 -0800</bug_when>
    <thetext>Committed 259574@main (4ecebb76cee1): &lt;https://commits.webkit.org/259574@main&gt;

Reviewed commits have been landed. Closing PR #9257 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>