blob: 5b80cc1221ccb66ac1e58d99c5433fe78f2ef6a7 (
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
29
30
31
32
|
#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()
{
// https://html.spec.whatwg.org/multipage/rendering.html#tables-2:attr-tr-height
const char* str = get_attr("height");
if (str)
map_to_dimension_property(_height_, str);
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();
}
|