diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-18 12:13:54 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-18 12:13:54 +0300 |
commit | 705c4d24c9c61edffc82864bf9c24384dc29a8d7 (patch) | |
tree | 4d21f87671db36b99402da3221d45b64c257c1fe /libs/litehtml/src/el_tr.cpp | |
parent | 5784fc3a62b9136c6690ed45ec7b505f35512e08 (diff) |
litehtml - lightweight html renderer
Diffstat (limited to 'libs/litehtml/src/el_tr.cpp')
-rw-r--r-- | libs/litehtml/src/el_tr.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libs/litehtml/src/el_tr.cpp b/libs/litehtml/src/el_tr.cpp new file mode 100644 index 0000000000..f109976542 --- /dev/null +++ b/libs/litehtml/src/el_tr.cpp @@ -0,0 +1,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(); +} |