Files
ladybird/Userland/Libraries/LibWeb/DOM/ShadowRoot.h
Andreas Kling f5771a5789 LibWeb: Check node type first in fast_is<ShadowRoot>()
We know that shadow roots are always document fragments, so we can
check that before calling is_shadow_root() to avoid the cost of
a virtual call.
2023-11-02 17:09:34 +01:00

3.5 KiB