[webkit-changes] [WebKit/WebKit] 8249ec: Optimize StyledElement::rebuildPresentationalHintS...

Chris Dumez noreply at github.com
Wed Aug 30 21:17:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8249ec2a7b199f145256e194ad2fc97c61dbe404
      https://github.com/WebKit/WebKit/commit/8249ec2a7b199f145256e194ad2fc97c61dbe404
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M Source/WebCore/dom/StyledElement.cpp
    M Source/WebCore/dom/StyledElement.h
    M Source/WebCore/html/HTMLImageElement.h
    M Source/WebCore/svg/SVGElement.cpp

  Log Message:
  -----------
  Optimize StyledElement::rebuildPresentationalHintStyle()
https://bugs.webkit.org/show_bug.cgi?id=258316
rdar://111406451

Reviewed by Darin Adler.

Optimize StyledElement::rebuildPresentationalHintStyle() by leveraging
the NodeName enumeration to avoid a large HashMap lookup.

* Source/WebCore/dom/StyledElement.cpp:
(WebCore::StyledElement::rebuildPresentationalHintStyle):
* Source/WebCore/dom/StyledElement.h:
(WebCore::StyledElement::additionalPresentationalHintStyle const):
(WebCore::StyledElement::collectExtraStyleForPresentationalHints): Deleted.
* Source/WebCore/html/HTMLImageElement.h:
* Source/WebCore/svg/SVGElement.cpp:
(WebCore::SVGElement::cssPropertyIdForSVGAttributeName):
(WebCore::createAttributeNameToCSSPropertyIDMap): Deleted.

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




More information about the webkit-changes mailing list