summaryrefslogtreecommitdiff
path: root/libs/litehtml/src/el_div.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/litehtml/src/el_div.cpp')
-rw-r--r--libs/litehtml/src/el_div.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/litehtml/src/el_div.cpp b/libs/litehtml/src/el_div.cpp
new file mode 100644
index 0000000000..983d45ab2a
--- /dev/null
+++ b/libs/litehtml/src/el_div.cpp
@@ -0,0 +1,18 @@
+#include "html.h"
+#include "el_div.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();
+}