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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 WindRule Path::windRule() const | 271 WindRule Path::windRule() const |
272 { | 272 { |
273 return m_path.getFillType() == SkPath::kEvenOdd_FillType | 273 return m_path.getFillType() == SkPath::kEvenOdd_FillType |
274 ? RULE_EVENODD | 274 ? RULE_EVENODD |
275 : RULE_NONZERO; | 275 : RULE_NONZERO; |
276 } | 276 } |
277 | 277 |
278 void Path::setWindRule(const WindRule rule) | 278 void Path::setWindRule(const WindRule rule) |
279 { | 279 { |
280 m_path.setFillType(static_cast<SkPath::FillType>(rule)); | 280 m_path.setFillType(WebCoreWindRuleToSkFillType(rule)); |
281 } | 281 } |
282 | 282 |
283 void Path::moveTo(const FloatPoint& point) | 283 void Path::moveTo(const FloatPoint& point) |
284 { | 284 { |
285 m_path.moveTo(point.data()); | 285 m_path.moveTo(point.data()); |
286 } | 286 } |
287 | 287 |
288 void Path::addLineTo(const FloatPoint& point) | 288 void Path::addLineTo(const FloatPoint& point) |
289 { | 289 { |
290 m_path.lineTo(point.data()); | 290 m_path.lineTo(point.data()); |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 | 497 |
498 #if ENABLE(ASSERT) | 498 #if ENABLE(ASSERT) |
499 bool ellipseIsRenderable(float startAngle, float endAngle) | 499 bool ellipseIsRenderable(float startAngle, float endAngle) |
500 { | 500 { |
501 return (std::abs(endAngle - startAngle) < twoPiFloat) | 501 return (std::abs(endAngle - startAngle) < twoPiFloat) |
502 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat); | 502 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat); |
503 } | 503 } |
504 #endif | 504 #endif |
505 | 505 |
506 } | 506 } |
OLD | NEW |