Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ce9e19af75420131573a13d1d23b16c7e935d7c3
      
https://github.com/WebKit/WebKit/commit/ce9e19af75420131573a13d1d23b16c7e935d7c3
  Author: Chris Dumez <[email protected]>
  Date:   2026-04-05 (Sun, 05 Apr 2026)

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

  Log Message:
  -----------
  LocalDOMWindow: avoid redundant accessor calls
https://bugs.webkit.org/show_bug.cgi?id=311478

Reviewed by Anne van Kesteren.

Cache return values of frame() and document() in page(), matchMedia(),
and notifyActivated() to avoid repeated calls through the accessor chain.

Also fix indentation of DEVICE_ORIENTATION block in removeAllEventListeners().

* Source/WebCore/page/LocalDOMWindow.cpp:
(WebCore::LocalDOMWindow::matchMedia):
(WebCore::LocalDOMWindow::page const):
(WebCore::LocalDOMWindow::notifyActivated):
(WebCore::LocalDOMWindow::removeAllEventListeners):

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



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

Reply via email to