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 * 2006 Rob Buis <buis@kde.org> | 3 * 2006 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2013 Google Inc. All rights reserved. | 5 * Copyright (C) 2013 Google Inc. All rights reserved. |
6 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 6 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
7 * | 7 * |
8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
10 * are met: | 10 * are met: |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 void Path::clear() | 268 void Path::clear() |
269 { | 269 { |
270 m_path.reset(); | 270 m_path.reset(); |
271 } | 271 } |
272 | 272 |
273 bool Path::isEmpty() const | 273 bool Path::isEmpty() const |
274 { | 274 { |
275 return m_path.isEmpty(); | 275 return m_path.isEmpty(); |
276 } | 276 } |
277 | 277 |
| 278 bool Path::isClosed() const |
| 279 { |
| 280 return m_path.isLastContourClosed(); |
| 281 } |
| 282 |
278 void Path::setIsVolatile(bool isVolatile) | 283 void Path::setIsVolatile(bool isVolatile) |
279 { | 284 { |
280 m_path.setIsVolatile(isVolatile); | 285 m_path.setIsVolatile(isVolatile); |
281 } | 286 } |
282 | 287 |
283 bool Path::hasCurrentPoint() const | 288 bool Path::hasCurrentPoint() const |
284 { | 289 { |
285 return m_path.getPoints(0, 0); | 290 return m_path.getPoints(0, 0); |
286 } | 291 } |
287 | 292 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 | 510 |
506 #if ENABLE(ASSERT) | 511 #if ENABLE(ASSERT) |
507 bool ellipseIsRenderable(float startAngle, float endAngle) | 512 bool ellipseIsRenderable(float startAngle, float endAngle) |
508 { | 513 { |
509 return (std::abs(endAngle - startAngle) < twoPiFloat) | 514 return (std::abs(endAngle - startAngle) < twoPiFloat) |
510 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat); | 515 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat); |
511 } | 516 } |
512 #endif | 517 #endif |
513 | 518 |
514 } // namespace blink | 519 } // namespace blink |
OLD | NEW |