| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 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 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef RoundedRect_h | 27 #ifndef RoundedRect_h |
| 28 #define RoundedRect_h | 28 #define RoundedRect_h |
| 29 | 29 |
| 30 #include "platform/geometry/FloatQuad.h" | 30 #include "platform/geometry/FloatQuad.h" |
| 31 #include "platform/geometry/IntRect.h" | 31 #include "platform/geometry/IntRect.h" |
| 32 | 32 |
| 33 namespace WebCore { | 33 namespace blink { |
| 34 | 34 |
| 35 // This class is used to represent rectangles with rounded corners. It is only | 35 // This class is used to represent rectangles with rounded corners. It is only |
| 36 // used for painting. It uses integer units because using layout units leads to | 36 // used for painting. It uses integer units because using layout units leads to |
| 37 // blurry rounded corners. | 37 // blurry rounded corners. |
| 38 class PLATFORM_EXPORT RoundedRect { | 38 class PLATFORM_EXPORT RoundedRect { |
| 39 public: | 39 public: |
| 40 class PLATFORM_EXPORT Radii { | 40 class PLATFORM_EXPORT Radii { |
| 41 public: | 41 public: |
| 42 Radii() { } | 42 Radii() { } |
| 43 Radii(const IntSize& topLeft, const IntSize& topRight, const IntSize& bo
ttomLeft, const IntSize& bottomRight) | 43 Radii(const IntSize& topLeft, const IntSize& topRight, const IntSize& bo
ttomLeft, const IntSize& bottomRight) |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 { | 120 { |
| 121 return !(a == b); | 121 return !(a == b); |
| 122 } | 122 } |
| 123 | 123 |
| 124 inline bool operator==(const RoundedRect& a, const RoundedRect& b) | 124 inline bool operator==(const RoundedRect& a, const RoundedRect& b) |
| 125 { | 125 { |
| 126 return a.rect() == b.rect() && a.radii() == b.radii(); | 126 return a.rect() == b.rect() && a.radii() == b.radii(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 | 129 |
| 130 } // namespace WebCore | 130 } // namespace blink |
| 131 | 131 |
| 132 #endif // RoundedRect_h | 132 #endif // RoundedRect_h |
| OLD | NEW |