| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2005 Nokia. All rights reserved. | 3 * Copyright (C) 2005 Nokia. 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 m_size.setWidth(m_size.width() + dx + dx); | 156 m_size.setWidth(m_size.width() + dx + dx); |
| 157 } | 157 } |
| 158 void inflateY(float dy) | 158 void inflateY(float dy) |
| 159 { | 159 { |
| 160 m_location.setY(m_location.y() - dy); | 160 m_location.setY(m_location.y() - dy); |
| 161 m_size.setHeight(m_size.height() + dy + dy); | 161 m_size.setHeight(m_size.height() + dy + dy); |
| 162 } | 162 } |
| 163 void inflate(float d) { inflateX(d); inflateY(d); } | 163 void inflate(float d) { inflateX(d); inflateY(d); } |
| 164 void scale(float s) { scale(s, s); } | 164 void scale(float s) { scale(s, s); } |
| 165 void scale(float sx, float sy); | 165 void scale(float sx, float sy); |
| 166 float distanceFromPoint(const FloatPoint&); |
| 166 | 167 |
| 167 FloatRect transposedRect() const { return FloatRect(m_location.transposedPoi
nt(), m_size.transposedSize()); } | 168 FloatRect transposedRect() const { return FloatRect(m_location.transposedPoi
nt(), m_size.transposedSize()); } |
| 168 | 169 |
| 169 #if OS(MACOSX) | 170 #if OS(MACOSX) |
| 170 FloatRect(const CGRect&); | 171 FloatRect(const CGRect&); |
| 171 operator CGRect() const; | 172 operator CGRect() const; |
| 172 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) | 173 #if defined(__OBJC__) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) |
| 173 FloatRect(const NSRect&); | 174 FloatRect(const NSRect&); |
| 174 operator NSRect() const; | 175 operator NSRect() const; |
| 175 #endif | 176 #endif |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 PLATFORM_EXPORT IntRect enclosedIntRect(const FloatRect&); | 242 PLATFORM_EXPORT IntRect enclosedIntRect(const FloatRect&); |
| 242 | 243 |
| 243 PLATFORM_EXPORT IntRect roundedIntRect(const FloatRect&); | 244 PLATFORM_EXPORT IntRect roundedIntRect(const FloatRect&); |
| 244 | 245 |
| 245 // Map supplied rect from srcRect to an equivalent rect in destRect. | 246 // Map supplied rect from srcRect to an equivalent rect in destRect. |
| 246 PLATFORM_EXPORT FloatRect mapRect(const FloatRect&, const FloatRect& srcRect, co
nst FloatRect& destRect); | 247 PLATFORM_EXPORT FloatRect mapRect(const FloatRect&, const FloatRect& srcRect, co
nst FloatRect& destRect); |
| 247 | 248 |
| 248 } | 249 } |
| 249 | 250 |
| 250 #endif | 251 #endif |
| OLD | NEW |