summaryrefslogtreecommitdiff
path: root/libs/litehtml/src/el_tr.cpp
blob: f10997654223fe0755830301b2b4d0a993341a1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "html.h"
#include "el_tr.h"


litehtml::el_tr::el_tr(const std::shared_ptr<document>& doc) : html_tag(doc)
{

}

void litehtml::el_tr::parse_attributes()
{
	const char* str = get_attr("align");
	if(str)
	{
		m_style.add_property(_text_align_, str);
	}
	str = get_attr("valign");
	if(str)
	{
		m_style.add_property(_vertical_align_, str);
	}
	str = get_attr("bgcolor");
	if (str)
	{
		m_style.add_property(_background_color_, str, "", false, get_document()->container());
	}
	html_tag::parse_attributes();
}