2020-12-14 21:31:10 +00:00
|
|
|
/*
|
2021-04-22 22:51:19 +02:00
|
|
|
* Copyright (c) 2020, Linus Groh <linusg@serenityos.org>
|
2020-12-14 21:31:10 +00:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-12-14 21:31:10 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/HashMap.h>
|
|
|
|
|
#include <LibWeb/CSS/StyleResolver.h>
|
|
|
|
|
#include <LibWeb/DOM/Document.h>
|
|
|
|
|
#include <LibWeb/DOM/Element.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::CSS {
|
|
|
|
|
|
|
|
|
|
class StyleInvalidator {
|
|
|
|
|
public:
|
|
|
|
|
explicit StyleInvalidator(DOM::Document&);
|
|
|
|
|
~StyleInvalidator();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
DOM::Document& m_document;
|
|
|
|
|
HashMap<DOM::Element*, Vector<MatchingRule>> m_elements_and_matching_rules_before;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|