Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 661903c7949859c5f2655b94ad9daf6d8d2404ec
      
https://github.com/WebKit/WebKit/commit/661903c7949859c5f2655b94ad9daf6d8d2404ec
  Author: Ahmad Saleem <ahmad.saleem792+git...@gmail.com>
  Date:   2025-08-25 (Mon, 25 Aug 2025)

  Changed paths:
    M Source/WebCore/svg/animation/SVGSMILElement.cpp

  Log Message:
  -----------
  Improve comparison of intervals in `resolveFirstInterval()`
https://bugs.webkit.org/show_bug.cgi?id=250481
rdar://problem/104399900

Reviewed by Nikolas Zimmermann.

Inspired by: 
https://github.com/chromium/chromium/commit/5b93bdd34c17dae682ce14c45125abc603310b16

For open-ended intervals such as [3) — i.e., begin = 3s and end/duration
unspecified — every call to resolveFirstInterval() would think a new interval
had been created and trigger unnecessary notifications and reschedules of
animations.

This patch compares the underlying SMILTime values directly using value().

The change preserves the original behavior but reduces redundant calls and
notifications. No new tests are added.

* Source/WebCore/svg/animation/SVGSMILElement.cpp:
(WebCore::SVGSMILElement::resolveFirstInterval):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to