| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) 2005 Nokia. All rights reserved. | 3 * Copyright (C) 2005 Nokia. All rights reserved. |
| 4 * 2008 Eric Seidel <eric@webkit.org> | 4 * 2008 Eric Seidel <eric@webkit.org> |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 return IntPoint(clampTo<int>(floorf(p.Width())), | 192 return IntPoint(clampTo<int>(floorf(p.Width())), |
| 193 clampTo<int>(floorf(p.Height()))); | 193 clampTo<int>(floorf(p.Height()))); |
| 194 } | 194 } |
| 195 | 195 |
| 196 // Redeclared here to avoid ODR issues. | 196 // Redeclared here to avoid ODR issues. |
| 197 // See platform/testing/GeometryPrinters.h. | 197 // See platform/testing/GeometryPrinters.h. |
| 198 void PrintTo(const FloatSize&, std::ostream*); | 198 void PrintTo(const FloatSize&, std::ostream*); |
| 199 | 199 |
| 200 } // namespace blink | 200 } // namespace blink |
| 201 | 201 |
| 202 // Allows this class to be stored in a HeapVector. | |
| 203 WTF_ALLOW_CLEAR_UNUSED_SLOTS_WITH_MEM_FUNCTIONS(blink::FloatSize); | |
| 204 | |
| 205 #endif // FloatSize_h | 202 #endif // FloatSize_h |
| OLD | NEW |