Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fb0f08f12317f67c126cffd2549e2c57287aa7c9
      
https://github.com/WebKit/WebKit/commit/fb0f08f12317f67c126cffd2549e2c57287aa7c9
  Author: lilly <[email protected]>
  Date:   2026-08-31 (Mon, 31 Aug 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/CornerShapeUtilities.cpp

  Log Message:
  -----------
  corner-shape: the superellipse half-corner and Bézier handles are recomputed 
for every corner
https://bugs.webkit.org/show_bug.cgi?id=322852
rdar://186095144

Reviewed by Simon Fraser.

Building a contour re-derives the same superellipse constants for all four
corners, two pow() calls for the half corner, plus a tanh, two exp and a
pow for the handle fit, even though they depend only on the corner-shape
parameter, which the four corners almost always share. Cache the last
result of each in thread-local storage and give the curve lists inline capacity

Peformance improvements were measured through Instruments and MotionMark

* Source/WebCore/platform/graphics/CornerShapeUtilities.cpp:

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



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

Reply via email to