| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DoublePoint_h | 5 #ifndef DoublePoint_h |
| 6 #define DoublePoint_h | 6 #define DoublePoint_h |
| 7 | 7 |
| 8 #include "platform/geometry/DoubleSize.h" | 8 #include "platform/geometry/DoubleSize.h" |
| 9 #include "platform/geometry/FloatPoint.h" | 9 #include "platform/geometry/FloatPoint.h" |
| 10 #include "platform/geometry/FloatSize.h" | 10 #include "platform/geometry/FloatSize.h" |
| 11 #include "platform/geometry/IntPoint.h" | 11 #include "platform/geometry/IntPoint.h" |
| 12 #include <algorithm> |
| 12 | 13 |
| 13 namespace blink { | 14 namespace blink { |
| 14 | 15 |
| 15 class LayoutPoint; | 16 class LayoutPoint; |
| 16 | 17 |
| 17 class PLATFORM_EXPORT DoublePoint { | 18 class PLATFORM_EXPORT DoublePoint { |
| 18 public: | 19 public: |
| 19 DoublePoint() | 20 DoublePoint() |
| 20 : m_x(0) | 21 : m_x(0) |
| 21 , m_y(0) | 22 , m_y(0) |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 112 } |
| 112 | 113 |
| 113 inline DoubleSize toDoubleSize(const DoublePoint& a) | 114 inline DoubleSize toDoubleSize(const DoublePoint& a) |
| 114 { | 115 { |
| 115 return DoubleSize(a.x(), a.y()); | 116 return DoubleSize(a.x(), a.y()); |
| 116 } | 117 } |
| 117 | 118 |
| 118 } | 119 } |
| 119 | 120 |
| 120 #endif | 121 #endif |
| OLD | NEW |