summaryrefslogtreecommitdiff
path: root/libs/litehtml/src/el_para.cpp
blob: 5d79151351695e6ad28b38349bd33b7b0836ecf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "html.h"
#include "el_para.h"
#include "document.h"

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

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

	html_tag::parse_attributes();
}