Disable stack execution on plugins
[claws.git] / src / plugins / litehtml_viewer / litehtml / el_anchor.cpp
blob372e4afb50e94aaa4e833b35f882d57e4fa079d4
1 #include "html.h"
2 #include "el_anchor.h"
3 #include "document.h"
5 litehtml::el_anchor::el_anchor(const std::shared_ptr<litehtml::document>& doc) : html_tag(doc)
9 void litehtml::el_anchor::on_click()
11 const char* href = get_attr("href");
13 if(href)
15 get_document()->container()->on_anchor_click(href, shared_from_this());
19 void litehtml::el_anchor::apply_stylesheet( const litehtml::css& stylesheet )
21 if( get_attr("href") )
23 m_pseudo_classes.push_back(_link_);
25 html_tag::apply_stylesheet(stylesheet);