| OLD | NEW |
| 1 | 1 |
| 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/IntPoint.h" | 10 #include "platform/geometry/IntPoint.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 inline FloatPoint toFloatPoint(const DoublePoint& a) | 167 inline FloatPoint toFloatPoint(const DoublePoint& a) |
| 168 { | 168 { |
| 169 return FloatPoint(a.x(), a.y()); | 169 return FloatPoint(a.x(), a.y()); |
| 170 } | 170 } |
| 171 | 171 |
| 172 inline DoubleSize toDoubleSize(const DoublePoint& a) | 172 inline DoubleSize toDoubleSize(const DoublePoint& a) |
| 173 { | 173 { |
| 174 return DoubleSize(a.x(), a.y()); | 174 return DoubleSize(a.x(), a.y()); |
| 175 } | 175 } |
| 176 | 176 |
| 177 // Redeclared here to avoid ODR issues. | 177 PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const DoublePoint&); |
| 178 // See platform/testing/GeometryPrinters.h. | |
| 179 void PrintTo(const DoublePoint&, std::ostream*); | |
| 180 | 178 |
| 181 } // namespace blink | 179 } // namespace blink |
| 182 | 180 |
| 183 #endif | 181 #endif |
| OLD | NEW |