[webkit-changes] [WebKit/WebKit] 4669b7: Reduce use of downcast<>() in WebCore/

Chris Dumez noreply at github.com
Sat Mar 2 22:06:52 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4669b7a5345f90b57f5219e92c8ff15f854e911c
      https://github.com/WebKit/WebKit/commit/4669b7a5345f90b57f5219e92c8ff15f854e911c
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2024-03-02 (Sat, 02 Mar 2024)

  Changed paths:
    M Source/WebCore/dom/ComposedTreeIterator.cpp
    M Source/WebCore/dom/ComposedTreeIterator.h
    M Source/WebCore/loader/DocumentLoader.cpp
    M Source/WebCore/loader/DocumentLoader.h
    M Source/WebCore/loader/SubresourceLoader.cpp
    M Source/WebCore/page/EventHandler.cpp
    M Source/WebCore/page/FocusController.cpp
    M Source/WebCore/page/Frame.cpp
    M Source/WebCore/page/FrameSnapshotting.cpp
    M Source/WebCore/page/FrameView.cpp
    M Source/WebCore/page/ImageAnalysisQueue.cpp
    M Source/WebCore/page/InteractionRegion.cpp
    M Source/WebCore/page/ios/EventHandlerIOS.mm
    M Source/WebCore/page/mac/EventHandlerMac.mm
    M Source/WebCore/page/mac/ImageOverlayControllerMac.mm

  Log Message:
  -----------
  Reduce use of downcast<>() in WebCore/
https://bugs.webkit.org/show_bug.cgi?id=270402

Reviewed by Darin Adler.

Reduce use of downcast<>() in WebCore/, for performance reasons.

* Source/WebCore/dom/ComposedTreeIterator.cpp:
(WebCore::ComposedTreeIterator::traverseNextLeavingContext):
(WebCore::ComposedTreeIterator::advanceInSlot):
(WebCore::ComposedTreeIterator::traverseSiblingInSlot):
* Source/WebCore/dom/ComposedTreeIterator.h:
* Source/WebCore/loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::addSubresourceLoader):
(WebCore::DocumentLoader::removeSubresourceLoader):
* Source/WebCore/loader/DocumentLoader.h:
* Source/WebCore/loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::notifyDone):
* Source/WebCore/page/EventHandler.cpp:
(WebCore::EventHandler::updateMouseEventTargetNode):
* Source/WebCore/page/FocusController.cpp:
(WebCore::FocusNavigationScope::owner const):
* Source/WebCore/page/Frame.cpp:
(WebCore::Frame::ownerRenderer const):
* Source/WebCore/page/FrameSnapshotting.cpp:
(WebCore::estimatedBackgroundColorForRange):
* Source/WebCore/page/FrameView.cpp:
(WebCore::FrameView::convertToContainingView const):
(WebCore::FrameView::convertFromContainingView const):
* Source/WebCore/page/ImageAnalysisQueue.cpp:
(WebCore::ImageAnalysisQueue::enqueueIfNeeded):
* Source/WebCore/page/InteractionRegion.cpp:
(WebCore::interactionRegionForRenderedRegion):
* Source/WebCore/page/ios/EventHandlerIOS.mm:
(WebCore::EventHandler::passWidgetMouseDownEventToWidget):
(WebCore::EventHandler::passSubframeEventToSubframe):
* Source/WebCore/page/mac/EventHandlerMac.mm:
(WebCore::EventHandler::passWidgetMouseDownEventToWidget):
(WebCore::EventHandler::passSubframeEventToSubframe):
(WebCore::scrollableAreaForBox):
* Source/WebCore/page/mac/ImageOverlayControllerMac.mm:
(WebCore::ImageOverlayController::elementUnderMouseDidChange):

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



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


More information about the webkit-changes mailing list