2020-01-18 09:38:21 +01:00
|
|
|
/*
|
2021-09-29 23:46:16 +02:00
|
|
|
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
2021-02-21 18:44:17 +02:00
|
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
2020-01-18 09:38:21 +01:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 09:38:21 +01:00
|
|
|
*/
|
|
|
|
|
2019-09-29 17:43:30 +02:00
|
|
|
#pragma once
|
|
|
|
|
2020-07-26 15:08:16 +02:00
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
2019-09-29 17:43:30 +02:00
|
|
|
|
2020-07-28 18:20:36 +02:00
|
|
|
namespace Web::HTML {
|
2020-03-07 10:27:02 +01:00
|
|
|
|
2020-07-28 02:54:19 +01:00
|
|
|
class HTMLStyleElement final : public HTMLElement {
|
2019-09-29 17:43:30 +02:00
|
|
|
public:
|
2020-07-27 05:04:26 +01:00
|
|
|
using WrapperType = Bindings::HTMLStyleElementWrapper;
|
|
|
|
|
2021-02-07 11:20:15 +01:00
|
|
|
HTMLStyleElement(DOM::Document&, QualifiedName);
|
2019-09-29 17:43:30 +02:00
|
|
|
virtual ~HTMLStyleElement() override;
|
|
|
|
|
2020-04-03 23:06:09 +02:00
|
|
|
virtual void children_changed() override;
|
2021-04-06 17:58:20 +01:00
|
|
|
virtual void removed_from(Node*) override;
|
2019-09-29 17:43:30 +02:00
|
|
|
|
2021-09-29 23:46:16 +02:00
|
|
|
void update_a_style_block();
|
|
|
|
|
2019-09-29 17:43:30 +02:00
|
|
|
private:
|
2021-09-29 23:46:16 +02:00
|
|
|
// https://drafts.csswg.org/cssom/#associated-css-style-sheet
|
|
|
|
RefPtr<CSS::CSSStyleSheet> m_associated_css_style_sheet;
|
2019-09-29 17:43:30 +02:00
|
|
|
};
|
2020-03-07 10:27:02 +01:00
|
|
|
|
2020-06-07 23:27:03 +02:00
|
|
|
}
|