| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 } | 270 } |
| 271 | 271 |
| 272 inline FloatSize toFloatSize(const FloatPoint& a) | 272 inline FloatSize toFloatSize(const FloatPoint& a) |
| 273 { | 273 { |
| 274 return FloatSize(a.x(), a.y()); | 274 return FloatSize(a.x(), a.y()); |
| 275 } | 275 } |
| 276 | 276 |
| 277 // Find point where lines through the two pairs of points intersect. Returns fal
se if the lines don't intersect. | 277 // Find point where lines through the two pairs of points intersect. Returns fal
se if the lines don't intersect. |
| 278 PLATFORM_EXPORT bool findIntersection(const FloatPoint& p1, const FloatPoint& p2
, const FloatPoint& d1, const FloatPoint& d2, FloatPoint& intersection); | 278 PLATFORM_EXPORT bool findIntersection(const FloatPoint& p1, const FloatPoint& p2
, const FloatPoint& d1, const FloatPoint& d2, FloatPoint& intersection); |
| 279 | 279 |
| 280 // Redeclared here to avoid ODR issues. | 280 PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const FloatPoint&); |
| 281 // See platform/testing/GeometryPrinters.h. | |
| 282 void PrintTo(const FloatPoint&, std::ostream*); | |
| 283 | 281 |
| 284 } // namespace blink | 282 } // namespace blink |
| 285 | 283 |
| 286 #endif | 284 #endif |
| OLD | NEW |