gecko-dev/dom/performance
Sean Feng 6910219457 Bug 1778345 - Align PerformanceEventTiming::GetAnElement with the spec r=emilio
There are two bugs in this function, first the function doesn't do
the `is not connected` check correctly as it supposes to use
`IsInComposed()` but rather `IsInUnComposed()`. Second, it
doesn't get the root of the element correctly.

Also this patch converts the function be static so that it can be
reused.

Differential Revision: https://phabricator.services.mozilla.com/D151081
2022-07-06 20:11:44 +00:00
..