| 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 #ifndef DoubleRect_h | 5 #ifndef DoubleRect_h |
| 6 #define DoubleRect_h | 6 #define DoubleRect_h |
| 7 | 7 |
| 8 #include "platform/geometry/DoublePoint.h" | 8 #include "platform/geometry/DoublePoint.h" |
| 9 #include "platform/geometry/DoubleSize.h" | 9 #include "platform/geometry/DoubleSize.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 DoubleSize m_size; | 68 DoubleSize m_size; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 PLATFORM_EXPORT IntRect enclosingIntRect(const DoubleRect&); | 71 PLATFORM_EXPORT IntRect enclosingIntRect(const DoubleRect&); |
| 72 | 72 |
| 73 // Returns a valid IntRect contained within the given DoubleRect. | 73 // Returns a valid IntRect contained within the given DoubleRect. |
| 74 PLATFORM_EXPORT IntRect enclosedIntRect(const DoubleRect&); | 74 PLATFORM_EXPORT IntRect enclosedIntRect(const DoubleRect&); |
| 75 | 75 |
| 76 PLATFORM_EXPORT IntRect roundedIntRect(const DoubleRect&); | 76 PLATFORM_EXPORT IntRect roundedIntRect(const DoubleRect&); |
| 77 | 77 |
| 78 // Redeclared here to avoid ODR issues. | 78 PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const DoubleRect&); |
| 79 // See platform/testing/GeometryPrinters.h. | |
| 80 void PrintTo(const DoubleRect&, std::ostream*); | |
| 81 | 79 |
| 82 } // namespace blink | 80 } // namespace blink |
| 83 | 81 |
| 84 #endif | 82 #endif |
| OLD | NEW |