summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/StyleInvalidator.h
blob: c213d39813e8c3a6072147f9306b89150c9a6c58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (c) 2020, Linus Groh <linusg@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/HashMap.h>
#include <LibWeb/CSS/StyleComputer.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;
};

}