StyleInvalidator.h 513 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2020, Linus Groh <linusg@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/HashMap.h>
  8. #include <LibWeb/CSS/StyleResolver.h>
  9. #include <LibWeb/DOM/Document.h>
  10. #include <LibWeb/DOM/Element.h>
  11. namespace Web::CSS {
  12. class StyleInvalidator {
  13. public:
  14. explicit StyleInvalidator(DOM::Document&);
  15. ~StyleInvalidator();
  16. private:
  17. DOM::Document& m_document;
  18. HashMap<DOM::Element*, Vector<MatchingRule>> m_elements_and_matching_rules_before;
  19. };
  20. }