Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 674f44ebcb7a271e1361f7235a0f7f06e1edca0c
https://github.com/WebKit/WebKit/commit/674f44ebcb7a271e1361f7235a0f7f06e1edca0c
Author: Simon Fraser <[email protected]>
Date: 2023-11-09 (Thu, 09 Nov 2023)
Changed paths:
M Source/WebCore/rendering/RenderLayer.cpp
Log Message:
-----------
Avoid computing containerForRepaint() for non-self-painting layers
https://bugs.webkit.org/show_bug.cgi?id=264504
rdar://118186580
Reviewed by Alan Baradlay.
In RenderLayer::recursiveUpdateLayerPositions(), a non-self-painting layer will
just clear the clip rects,
so doesn't need to compute the repaintContainer (which is an ancestor tree
walk, so not free).
So factor some code into a lambda so we can early return, which allows for some
simplification.
* Source/WebCore/rendering/RenderLayer.cpp:
(WebCore::RenderLayer::recursiveUpdateLayerPositions):
Canonical link: https://commits.webkit.org/270476@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes