OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 { | 200 { |
201 return !(a == b); | 201 return !(a == b); |
202 } | 202 } |
203 | 203 |
204 | 204 |
205 inline bool operator==(const FloatRoundedRect& a, const FloatRoundedRect& b) | 205 inline bool operator==(const FloatRoundedRect& a, const FloatRoundedRect& b) |
206 { | 206 { |
207 return a.rect() == b.rect() && a.getRadii() == b.getRadii(); | 207 return a.rect() == b.rect() && a.getRadii() == b.getRadii(); |
208 } | 208 } |
209 | 209 |
| 210 inline bool operator!=(const FloatRoundedRect& a, const FloatRoundedRect& b) |
| 211 { |
| 212 return !(a == b); |
| 213 } |
| 214 |
210 // Redeclared here to avoid ODR issues. | 215 // Redeclared here to avoid ODR issues. |
211 // See platform/testing/GeometryPrinters.h. | 216 // See platform/testing/GeometryPrinters.h. |
212 void PrintTo(const FloatRoundedRect&, std::ostream*); | 217 void PrintTo(const FloatRoundedRect&, std::ostream*); |
213 void PrintTo(const FloatRoundedRect::Radii&, std::ostream*); | 218 void PrintTo(const FloatRoundedRect::Radii&, std::ostream*); |
214 | 219 |
215 } // namespace blink | 220 } // namespace blink |
216 | 221 |
217 #endif // FloatRoundedRect_h | 222 #endif // FloatRoundedRect_h |
OLD | NEW |