
Resolved style is a spec concept that refers to the weird mix of computed style and used style reflected by getComputedStyle(). The purpose of this class is to produce the *computed* style for a given element, so let's call it StyleComputer.
26 lines
513 B
C++
26 lines
513 B
C++
/*
|
|
* 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;
|
|
};
|
|
|
|
}
|