[webkit-changes] [WebKit/WebKit] 94b072: Avoid work when repaints are clipped at iframe bou...

Simon Fraser noreply at github.com
Mon Nov 6 20:30:59 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 94b07281b697c50c74b9a6c28154b3ce83bb4305
      https://github.com/WebKit/WebKit/commit/94b07281b697c50c74b9a6c28154b3ce83bb4305
  Author: Simon Fraser <simon.fraser at apple.com>
  Date:   2023-11-06 (Mon, 06 Nov 2023)

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

  Log Message:
  -----------
  Avoid work when repaints are clipped at iframe boundaries
https://bugs.webkit.org/show_bug.cgi?id=264301
rdar://118024306

Reviewed by Alan Baradlay.

We can early return from `RenderView::repaintViewRectangle()` when we find that a repaint rect is
clipped out in an iframe; this saves a little bit of work finding the repaint container in the
iframe's parent document, but is not detectable with a repaint test since we do avoid the
repaint eventually.

* Source/WebCore/rendering/RenderView.cpp:
(WebCore::RenderView::repaintViewRectangle const):

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




More information about the webkit-changes mailing list