| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "platform/testing/GeometryPrinters.h" | 5 #include "platform/testing/GeometryPrinters.h" |
| 6 | 6 |
| 7 #include "platform/geometry/FloatBox.h" | 7 #include "platform/geometry/FloatBox.h" |
| 8 #include "platform/geometry/FloatPoint.h" | 8 #include "platform/geometry/FloatPoint.h" |
| 9 #include "platform/geometry/FloatPoint3D.h" | 9 #include "platform/geometry/FloatPoint3D.h" |
| 10 #include "platform/geometry/FloatQuad.h" | 10 #include "platform/geometry/FloatQuad.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 111 } |
| 112 | 112 |
| 113 void PrintTo(const FloatSize& size, std::ostream* os) | 113 void PrintTo(const FloatSize& size, std::ostream* os) |
| 114 { | 114 { |
| 115 ScopedFloatFlags scope(*os); | 115 ScopedFloatFlags scope(*os); |
| 116 *os << "FloatSize(" | 116 *os << "FloatSize(" |
| 117 << size.width() << ", " | 117 << size.width() << ", " |
| 118 << size.height() << ")"; | 118 << size.height() << ")"; |
| 119 } | 119 } |
| 120 | 120 |
| 121 void PrintTo(const IntRect& rect, std::ostream* os) |
| 122 { |
| 123 *os << "IntRect(" |
| 124 << rect.x() << ", " |
| 125 << rect.y() << ", " |
| 126 << rect.width() << ", " |
| 127 << rect.height() << ")"; |
| 128 } |
| 129 |
| 121 void PrintTo(const LayoutRect& rect, std::ostream* os) | 130 void PrintTo(const LayoutRect& rect, std::ostream* os) |
| 122 { | 131 { |
| 123 ScopedFloatFlags scope(*os); | 132 ScopedFloatFlags scope(*os); |
| 124 *os << "LayoutRect(" | 133 *os << "LayoutRect(" |
| 125 << rect.x().toFloat() << ", " | 134 << rect.x().toFloat() << ", " |
| 126 << rect.y().toFloat() << ", " | 135 << rect.y().toFloat() << ", " |
| 127 << rect.width().toFloat() << ", " | 136 << rect.width().toFloat() << ", " |
| 128 << rect.height().toFloat() << ")"; | 137 << rect.height().toFloat() << ")"; |
| 129 } | 138 } |
| 130 | 139 |
| 131 } // namespace blink | 140 } // namespace blink |
| OLD | NEW |