Index: Source/core/platform/LengthPoint.h |
diff --git a/Source/core/css/xhtmlmp.css b/Source/core/platform/LengthPoint.h |
similarity index 70% |
copy from Source/core/css/xhtmlmp.css |
copy to Source/core/platform/LengthPoint.h |
index 11ea1cf1a031cfbf2694983c810bab1f925d99ae..151a852579cab0d08a1385fc7af89727ea2dc96c 100644 |
--- a/Source/core/css/xhtmlmp.css |
+++ b/Source/core/platform/LengthPoint.h |
@@ -27,11 +27,39 @@ |
* OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-/* Default styles for XHTML Mobile Profile documents where they differ from html.css */ |
- |
-@viewport { |
- width: auto; |
- /* Ideally these should be removed. Currently here to avoid test result regressions. */ |
- min-zoom: 0.25; |
- max-zoom: 5; |
-} |
+#ifndef LengthPoint_h |
+#define LengthPoint_h |
+ |
+#include "core/platform/Length.h" |
+ |
+namespace WebCore { |
+ |
+struct LengthPoint { |
+public: |
+ LengthPoint() |
+ { |
+ } |
+ |
+ LengthPoint(Length x, Length y) |
+ : m_x(x) |
+ , m_y(y) |
+ { |
+ } |
+ |
+ bool operator==(const LengthPoint& o) const { return m_x == o.m_x && m_y == o.m_y; } |
+ bool operator!=(const LengthPoint& o) const { return m_x != o.m_x || m_y != o.m_y; } |
+ |
+ void setX(Length x) { m_x = x; } |
+ Length x() const { return m_x; } |
+ |
+ void setY(Length y) { m_y = y; } |
+ Length y() const { return m_y; } |
+ |
+private: |
+ Length m_x; |
+ Length m_y; |
+}; |
+ |
+} // namespace WebCore |
+ |
+#endif // LengthPoint_h |