add support for Ayatana indicator to Notification plugin
[claws.git] / src / plugins / litehtml_viewer / litehtml / el_style.cpp
blobcc2f0bab6d9d56f0195030c4ba839b0add63fdeb
1 #include "html.h"
2 #include "el_style.h"
3 #include "document.h"
6 litehtml::el_style::el_style(const std::shared_ptr<document>& doc) : element(doc)
11 void litehtml::el_style::parse_attributes()
13 string text;
15 for(auto& el : m_children)
17 el->get_text(text);
19 get_document()->add_stylesheet( text.c_str(), nullptr, get_attr("media") );
22 bool litehtml::el_style::appendChild(const ptr &el)
24 m_children.push_back(el);
25 return true;
28 litehtml::string_id litehtml::el_style::tag() const
30 return _style_;
33 const char* litehtml::el_style::get_tagName() const
35 return "style";