Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f4c6be98ae7d95b71ec0cb2d9619ea8c0fe88533
      
https://github.com/WebKit/WebKit/commit/f4c6be98ae7d95b71ec0cb2d9619ea8c0fe88533
  Author: Nikolaos Mouchtaris <[email protected]>
  Date:   2025-04-04 (Fri, 04 Apr 2025)

  Changed paths:
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h
    M Source/WebCore/page/LocalFrame.cpp

  Log Message:
  -----------
  Adding event listener via window API should cause style invalidation
https://bugs.webkit.org/show_bug.cgi?id=290959
rdar://148471734

Reviewed by Simon Fraser.

When adding touch event handler via window API, ensure the style adjuster code 
is run.

* Source/WTF/wtf/PlatformEnableCocoa.h:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::wheelOrTouchEventHandlersChanged):
(WebCore::Document::wheelEventHandlersChanged):
(WebCore::Document::didAddTouchEventHandler):
(WebCore::Document::didRemoveTouchEventHandler):
* Source/WebCore/dom/Document.h:
* Source/WebCore/dom/Node.cpp:
(WebCore::tryAddEventListener):
* Source/WebCore/page/LocalDOMWindow.cpp:
(WebCore::LocalDOMWindow::addEventListener):
* Source/WebCore/page/LocalFrame.cpp:
(WebCore::LocalFrame::invalidateContentEventRegionsIfNeeded):

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



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

Reply via email to