| 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 24 matching lines...) Expand all Loading... |
| 35 typedef struct CGRect CGRect; | 35 typedef struct CGRect CGRect; |
| 36 | 36 |
| 37 #ifdef __OBJC__ | 37 #ifdef __OBJC__ |
| 38 #import <Foundation/Foundation.h> | 38 #import <Foundation/Foundation.h> |
| 39 #endif | 39 #endif |
| 40 #endif | 40 #endif |
| 41 | 41 |
| 42 struct SkRect; | 42 struct SkRect; |
| 43 struct SkIRect; | 43 struct SkIRect; |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace blink { |
| 46 | 46 |
| 47 class FloatRect; | 47 class FloatRect; |
| 48 class LayoutRect; | 48 class LayoutRect; |
| 49 | 49 |
| 50 class PLATFORM_EXPORT IntRect { | 50 class PLATFORM_EXPORT IntRect { |
| 51 WTF_MAKE_FAST_ALLOCATED; | 51 WTF_MAKE_FAST_ALLOCATED; |
| 52 public: | 52 public: |
| 53 IntRect() { } | 53 IntRect() { } |
| 54 IntRect(const IntPoint& location, const IntSize& size) | 54 IntRect(const IntPoint& location, const IntSize& size) |
| 55 : m_location(location), m_size(size) { } | 55 : m_location(location), m_size(size) { } |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 return a.location() != b.location() || a.size() != b.size(); | 197 return a.location() != b.location() || a.size() != b.size(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 #if OS(MACOSX) | 200 #if OS(MACOSX) |
| 201 PLATFORM_EXPORT IntRect enclosingIntRect(const CGRect&); | 201 PLATFORM_EXPORT IntRect enclosingIntRect(const CGRect&); |
| 202 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) | 202 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) |
| 203 PLATFORM_EXPORT IntRect enclosingIntRect(const NSRect&); | 203 PLATFORM_EXPORT IntRect enclosingIntRect(const NSRect&); |
| 204 #endif | 204 #endif |
| 205 #endif | 205 #endif |
| 206 | 206 |
| 207 } // namespace WebCore | 207 } // namespace blink |
| 208 | 208 |
| 209 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(WebCore::IntRect); | 209 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::IntRect); |
| 210 | 210 |
| 211 #endif // IntRect_h | 211 #endif // IntRect_h |
| OLD | NEW |