Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fdd7e7a09627bed6022d7dc130eb1cfd983d74d2
      
https://github.com/WebKit/WebKit/commit/fdd7e7a09627bed6022d7dc130eb1cfd983d74d2
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-01 (Wed, 01 Jul 2026)

  Changed paths:
    M Source/WebCore/dom/ContentVisibilityDocumentState.cpp

  Log Message:
  -----------
  ContentVisibilityDocumentState::updateViewportProximity does a redundant hash 
lookup
https://bugs.webkit.org/show_bug.cgi?id=318312
rdar://181102600

Reviewed by Charlie Wolfe.

updateViewportProximity() called contains() and then ensure() on
m_elementViewportProximities, hashing and probing the element twice.
Use the ensure() AddResult's isNewEntry to gate the relevancy-update
scheduling instead, collapsing it to a single lookup. No behavior change.

* Source/WebCore/dom/ContentVisibilityDocumentState.cpp:
(WebCore::ContentVisibilityDocumentState::updateViewportProximity):

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



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

Reply via email to