Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a76a09c1770e582172a73267a7778fe8e502d2bc
      
https://github.com/WebKit/WebKit/commit/a76a09c1770e582172a73267a7778fe8e502d2bc
  Author: Wenson Hsieh <wenson_hs...@apple.com>
  Date:   2025-03-10 (Mon, 10 Mar 2025)

  Changed paths:
    M Source/WebCore/page/ElementTargetingController.cpp

  Log Message:
  -----------
  [Element Targeting] Avoid triggering layout in 
`numberOfVisibilityAdjustmentRects` if there are no adjusted elements
https://bugs.webkit.org/show_bug.cgi?id=289499
rdar://146690887

Reviewed by Tim Horton.

Exit early (without updating layout) and return 0, in the case where we've 
never set visibility
adjustment on the current page. There should be no change in behavior, apart 
from avoiding the
unnecessary layout pass in this case.

* Source/WebCore/page/ElementTargetingController.cpp:
(WebCore::ElementTargetingController::numberOfVisibilityAdjustmentRects):

Canonical link: https://commits.webkit.org/291935@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