[webkit-changes] [WebKit/WebKit] dad3e7: Make visibility a fast-path inherited property

Antti Koivisto noreply at github.com
Wed Mar 22 13:22:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dad3e7e41255b081ac9f3bf7f9ea352ff07ddbca
      https://github.com/WebKit/WebKit/commit/dad3e7e41255b081ac9f3bf7f9ea352ff07ddbca
  Author: Antti Koivisto <antti at apple.com>
  Date:   2023-03-22 (Wed, 22 Mar 2023)

  Changed paths:
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/rendering/style/RenderStyle.cpp

  Log Message:
  -----------
  Make visibility a fast-path inherited property
https://bugs.webkit.org/show_bug.cgi?id=254265
rdar://107049260

Reviewed by Alan Baradlay.

We have a fast-path that allow style changes to certain properties (with well-understood dependencies)
to be inherited without recomputing the descendant style. Currently it is implemented for 'color'.
This patch adds 'visibility'.

* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::fastPathInheritFrom):
(WebCore::RenderStyle::fastPathInheritedEqual const):
(WebCore::RenderStyle::nonFastPathInheritedEqual const):

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




More information about the webkit-changes mailing list