Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ca55d7b7d4af390f99edbd2bbea27b38b36bbc26
https://github.com/WebKit/WebKit/commit/ca55d7b7d4af390f99edbd2bbea27b38b36bbc26
Author: Ryosuke Niwa <[email protected]>
Date: 2025-04-27 (Sun, 27 Apr 2025)
Changed paths:
M Source/WebCore/dom/Node.h
M Source/WebCore/dom/NodeInlines.h
M Source/WebCore/dom/PseudoElement.cpp
M Source/WebCore/dom/PseudoElement.h
M Source/WebCore/style/Styleable.h
Log Message:
-----------
Eliminate virtual function call in Node::pseudoId()
https://bugs.webkit.org/show_bug.cgi?id=292099
Reviewed by Anne van Kesteren.
Devirtualize Node::pseudoId() by storing a bit for IsPseudoElement.
* Source/WebCore/dom/Node.h:
(WebCore::Node::isPseudoElement const):
(WebCore::Node::isBeforePseudoElement const): Moved to NodeInlines.h
(WebCore::Node::isAfterPseudoElement const): Ditto.
(WebCore::Node::pseudoId const): Ditto.
(WebCore::Node::customPseudoId const): Deleted.
* Source/WebCore/dom/NodeInlines.h:
(WebCore::Node::isBeforePseudoElement const):
(WebCore::Node::isAfterPseudoElement const):
(WebCore::Node::pseudoId const):
* Source/WebCore/dom/PseudoElement.cpp:
(WebCore::PseudoElement::PseudoElement):
* Source/WebCore/dom/PseudoElement.h:
* Source/WebCore/style/Styleable.h:
Canonical link: https://commits.webkit.org/294168@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes