Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a7222d6ef7cc174237faa485b12ec889490fbe6d
      
https://github.com/WebKit/WebKit/commit/a7222d6ef7cc174237faa485b12ec889490fbe6d
  Author: Etienne Segonzac <[email protected]>
  Date:   2025-05-02 (Fri, 02 May 2025)

  Changed paths:
    M Source/WebCore/rendering/EventRegion.cpp
    M Source/WebCore/rendering/EventRegion.h
    M Source/WebCore/rendering/RenderLayerBacking.cpp

  Log Message:
  -----------
  Reserve capacity for the EventRegionContext's InteractionRegions Vector
https://bugs.webkit.org/show_bug.cgi?id=292319
<rdar://150200392>

Reviewed by Abrar Rahman Protyasha and Simon Fraser.

Before building the new InteractionRegions Vector, reserve capacity
based on the size of the previous one.

* Source/WebCore/rendering/EventRegion.h:
* Source/WebCore/rendering/EventRegion.cpp:
(WebCore::EventRegionContext::uniteInteractionRegions):
(WebCore::EventRegionContext::shouldConsolidateInteractionRegion):
Fix some double hashing issues.
(WebCore::EventRegionContext::reserveCapacityForInteractionRegions):
Expose a new method to reserve capacity.
* Source/WebCore/rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateEventRegion):
Reserve capacity based on the size of the current InteractionRegion
vector.

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