[webkit-changes] [WebKit/WebKit] 348b9c: Reduce use of downcast<>() in StyleProperties

Chris Dumez noreply at github.com
Sun Mar 10 10:59:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 348b9cd5aacbe2ecba06be5f435123e331a411b1
      https://github.com/WebKit/WebKit/commit/348b9cd5aacbe2ecba06be5f435123e331a411b1
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2024-03-10 (Sun, 10 Mar 2024)

  Changed paths:
    M Source/WebCore/css/StyleProperties.cpp
    M Source/WebCore/css/StylePropertiesInlines.h

  Log Message:
  -----------
  Reduce use of downcast<>() in StyleProperties
https://bugs.webkit.org/show_bug.cgi?id=270758

Reviewed by Anne van Kesteren.

Reduce use of downcast<>() in StyleProperties, for performance.

* Source/WebCore/css/StyleProperties.cpp:
(WebCore::StyleProperties::immutableCopyIfNeeded const):
* Source/WebCore/css/StylePropertiesInlines.h:
(WebCore::StyleProperties::propertyAt const):
(WebCore::StyleProperties::propertyCount const):
(WebCore::StyleProperties::findPropertyIndex const):
(WebCore::StyleProperties::findCustomPropertyIndex const):

Canonical link: https://commits.webkit.org/275896@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