[webkit-changes] [WebKit/WebKit] 674f44: Avoid computing containerForRepaint() for non-self...

Simon Fraser noreply at github.com
Thu Nov 9 13:58:19 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 674f44ebcb7a271e1361f7235a0f7f06e1edca0c
      https://github.com/WebKit/WebKit/commit/674f44ebcb7a271e1361f7235a0f7f06e1edca0c
  Author: Simon Fraser <simon.fraser at apple.com>
  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




More information about the webkit-changes mailing list