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 * | 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) | 155 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) |
156 operator NSRect() const; | 156 operator NSRect() const; |
157 #endif | 157 #endif |
158 #endif | 158 #endif |
159 | 159 |
160 operator SkRect() const; | 160 operator SkRect() const; |
161 operator SkIRect() const; | 161 operator SkIRect() const; |
162 | 162 |
163 #ifndef NDEBUG | 163 #ifndef NDEBUG |
164 // Prints the rect to the screen. | 164 // Prints the rect to the screen. |
165 void show(); | 165 void show() const; |
166 #endif | 166 #endif |
167 | 167 |
168 private: | 168 private: |
169 IntPoint m_location; | 169 IntPoint m_location; |
170 IntSize m_size; | 170 IntSize m_size; |
171 }; | 171 }; |
172 | 172 |
173 inline IntRect intersection(const IntRect& a, const IntRect& b) | 173 inline IntRect intersection(const IntRect& a, const IntRect& b) |
174 { | 174 { |
175 IntRect c = a; | 175 IntRect c = a; |
(...skipping 23 matching lines...) Expand all Loading... |
199 #if OS(MACOSX) | 199 #if OS(MACOSX) |
200 PLATFORM_EXPORT IntRect enclosingIntRect(const CGRect&); | 200 PLATFORM_EXPORT IntRect enclosingIntRect(const CGRect&); |
201 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) | 201 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) |
202 PLATFORM_EXPORT IntRect enclosingIntRect(const NSRect&); | 202 PLATFORM_EXPORT IntRect enclosingIntRect(const NSRect&); |
203 #endif | 203 #endif |
204 #endif | 204 #endif |
205 | 205 |
206 } // namespace WebCore | 206 } // namespace WebCore |
207 | 207 |
208 #endif // IntRect_h | 208 #endif // IntRect_h |
OLD | NEW |