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

LibWeb: Don't invalidate style for entire document on attribute change

We now only invalidate the style of the context element and all of its
descendants. It's still very aggressive, but much less than before.

Note that this will need to become a lot smarter once we implement the
CSS :has() selector.
This commit is contained in:
Andreas Kling 2022-10-29 13:04:18 +02:00
parent 5530040b3c
commit ccd72a2add
2 changed files with 15 additions and 8 deletions

View file

@ -173,6 +173,8 @@ protected:
private:
void make_html_uppercased_qualified_name();
void invalidate_style_after_attribute_change(FlyString const& attribute_name);
WebIDL::ExceptionOr<JS::GCPtr<Node>> insert_adjacent(String const& where, JS::NonnullGCPtr<Node> node);
QualifiedName m_qualified_name;