1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:27:35 +00:00

LibWeb: Add fast_is<T>() for some common DOM Node subclasses

This commit is contained in:
Andreas Kling 2022-03-29 23:28:17 +02:00
parent 02e2f11380
commit b0955fd269
5 changed files with 15 additions and 0 deletions

View file

@ -26,4 +26,7 @@ private:
String m_target;
};
template<>
inline bool Node::fast_is<ProcessingInstruction>() const { return node_type() == (u16)NodeType::PROCESSING_INSTRUCTION_NODE; }
}