| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. All rights reserve
d. | 2 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. All rights reserve
d. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 inline bool operator==(const IntSize& a, const IntSize& b) | 171 inline bool operator==(const IntSize& a, const IntSize& b) |
| 172 { | 172 { |
| 173 return a.width() == b.width() && a.height() == b.height(); | 173 return a.width() == b.width() && a.height() == b.height(); |
| 174 } | 174 } |
| 175 | 175 |
| 176 inline bool operator!=(const IntSize& a, const IntSize& b) | 176 inline bool operator!=(const IntSize& a, const IntSize& b) |
| 177 { | 177 { |
| 178 return a.width() != b.width() || a.height() != b.height(); | 178 return a.width() != b.width() || a.height() != b.height(); |
| 179 } | 179 } |
| 180 | 180 |
| 181 // Redeclared here to avoid ODR issues. | 181 PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const IntSize&); |
| 182 // See platform/testing/GeometryPrinters.h. | |
| 183 void PrintTo(const IntSize&, std::ostream*); | |
| 184 | 182 |
| 185 } // namespace blink | 183 } // namespace blink |
| 186 | 184 |
| 187 #endif // IntSize_h | 185 #endif // IntSize_h |
| OLD | NEW |