Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5b0a76d902814a587d0247634620a04ef1c67dd4
      
https://github.com/WebKit/WebKit/commit/5b0a76d902814a587d0247634620a04ef1c67dd4
  Author: Chris Dumez <[email protected]>
  Date:   2023-09-06 (Wed, 06 Sep 2023)

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

  Log Message:
  -----------
  Avoid unnecessary vector comparison in 
RenderLayerBacking::setBackingSharingLayers()
https://bugs.webkit.org/show_bug.cgi?id=261186

Reviewed by Simon Fraser.

Reuse sharingLayersChanged instead of comparing the vectors again. Also
leverage std::exchange() to make the code a bit more concise.

* Source/WebCore/rendering/RenderLayerBacking.cpp:
(WebCore::clearBackingSharingLayerProviders):
(WebCore::RenderLayerBacking::setBackingSharingLayers):

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to