litehtml-sys 0.2.4

Raw FFI bindings for litehtml (C++ HTML/CSS rendering engine)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "el_div.h"
#include "document.h"


litehtml::el_div::el_div(const document::ptr& doc) : html_tag(doc)
{

}

void litehtml::el_div::parse_attributes()
{
	const char* str = get_attr("align");
	if(str)
	{
		m_style.add_property(_text_align_, str);
	}
	html_tag::parse_attributes();
}