Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a82c51b3384f3edd8172d74817710fd6b03824ed
      
https://github.com/WebKit/WebKit/commit/a82c51b3384f3edd8172d74817710fd6b03824ed
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-05-03 (Sun, 03 May 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/FloatLine.h

  Log Message:
  -----------
  Use std::hypot in FloatLine constructor
https://bugs.webkit.org/show_bug.cgi?id=313920
rdar://176115784

Reviewed by Chris Dumez.

This patch replaces sqrtf(powf(...)) with std::hypot for computing line length.
This is also bit clearer and avoids potential overflow/underflow with extreme 
values.

* Source/WebCore/platform/graphics/FloatLine.h:
(WebCore::FloatLine::FloatLine):

Canonical link: https://commits.webkit.org/312495@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to