Update current version of litehtml. Fix a crash when document contains no fonts
[claws.git] / src / plugins / litehtml_viewer / litehtml / css_position.h
index 05f046dcfa8448cb7202756517d68cb51839fe88..308a14fee7b995f7e7e14649cd68b2f57e362144 100644 (file)
@@ -1,35 +1,39 @@
-#pragma once\r
-#include "css_length.h"\r
-\r
-namespace litehtml\r
-{\r
-       struct css_position\r
-       {\r
-               css_length      x;\r
-               css_length      y;\r
-               css_length      width;\r
-               css_length      height;\r
-\r
-               css_position()\r
-               {\r
-\r
-               }\r
-\r
-               css_position(const css_position& val)\r
-               {\r
-                       x               = val.x;\r
-                       y               = val.y;\r
-                       width   = val.width;\r
-                       height  = val.height;\r
-               }\r
-\r
-               css_position& operator=(const css_position& val)\r
-               {\r
-                       x               = val.x;\r
-                       y               = val.y;\r
-                       width   = val.width;\r
-                       height  = val.height;\r
-                       return *this;\r
-               }\r
-       };\r
-}
\ No newline at end of file
+#ifndef LH_CSS_POSITION_H
+#define LH_CSS_POSITION_H
+
+#include "css_length.h"
+
+namespace litehtml
+{
+       struct css_position
+       {
+               css_length      x;
+               css_length      y;
+               css_length      width;
+               css_length      height;
+
+               css_position()
+               {
+
+               }
+
+               css_position(const css_position& val)
+               {
+                       x               = val.x;
+                       y               = val.y;
+                       width   = val.width;
+                       height  = val.height;
+               }
+
+               css_position& operator=(const css_position& val)
+               {
+                       x               = val.x;
+                       y               = val.y;
+                       width   = val.width;
+                       height  = val.height;
+                       return *this;
+               }
+       };
+}
+
+#endif  // LH_CSS_POSITION_H