Add basic thumbnail parsing functionality.

This commit is contained in:
Dario
2025-01-28 22:34:03 -03:00
committed by Mr-Wiseguy
parent 13a22b1504
commit 937f390331
12 changed files with 142 additions and 101 deletions
+4
View File
@@ -252,6 +252,10 @@ void Element::set_text(std::string_view text) {
base->SetInnerRML(std::string(text));
}
void Element::set_src(std::string_view src) {
base->SetAttribute("src", std::string(src));
}
void Element::set_style_enabled(std::string_view style_name, bool enable) {
if (enable && style_active_set.find(style_name) == style_active_set.end()) {
// Style was disabled and will be enabled.