[webkit-changes] [WebKit/WebKit] 9556da: Use more efficient treeOrder<>() in compareDeclara...
Chris Dumez
noreply at github.com
Tue Mar 7 22:14:42 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9556da2412e5eb453a6a99acf7a0ef55c633f28f
https://github.com/WebKit/WebKit/commit/9556da2412e5eb453a6a99acf7a0ef55c633f28f
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-03-07 (Tue, 07 Mar 2023)
Changed paths:
M Source/WebCore/animation/WebAnimationUtilities.cpp
Log Message:
-----------
Use more efficient treeOrder<>() in compareDeclarativeAnimationOwningElementPositionsInDocumentTreeOrder()
https://bugs.webkit.org/show_bug.cgi?id=253521
Reviewed by Darin Adler.
Use more efficient treeOrder<>() in compareDeclarativeAnimationOwningElementPositionsInDocumentTreeOrder()
instead of Node::compareDocumentPosition(), which is meant to be used by JavaScript and has additional
cruft.
Also only call sortingIndex() when its result is actually used.
* Source/WebCore/animation/WebAnimationUtilities.cpp:
(WebCore::compareDeclarativeAnimationOwningElementPositionsInDocumentTreeOrder):
Canonical link: https://commits.webkit.org/261359@main
More information about the webkit-changes
mailing list