[webkit-changes] [WebKit/WebKit] 0d0985: Do not run inline layout invalidation when formatt...

Alan Baradlay noreply at github.com
Fri Apr 26 06:16:37 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0d09859003293963034021c6345efe80f7740edf
      https://github.com/WebKit/WebKit/commit/0d09859003293963034021c6345efe80f7740edf
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2024-04-26 (Fri, 26 Apr 2024)

  Changed paths:
    M Source/WebCore/rendering/updating/RenderTreeBuilder.cpp

  Log Message:
  -----------
  Do not run inline layout invalidation when formatting root is also destroyed
https://bugs.webkit.org/show_bug.cgi?id=273200

Reviewed by Antti Koivisto.

1. Render tree tear down normally starts at leaf followed by destroying containers.
2. Invalidation code at the leaf level does not consider whether root is going to be destroy too.

It could lead to unnecessary work at leaf level which now we just skip.

* Source/WebCore/rendering/updating/RenderTreeBuilder.cpp:
(WebCore::RenderTreeBuilder::detachFromRenderElement):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list