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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 #include <math.h> | 33 #include <math.h> |
34 #include "platform/geometry/FloatPoint.h" | 34 #include "platform/geometry/FloatPoint.h" |
35 #include "platform/geometry/FloatRect.h" | 35 #include "platform/geometry/FloatRect.h" |
36 #include "platform/graphics/GraphicsContext.h" | 36 #include "platform/graphics/GraphicsContext.h" |
37 #include "platform/graphics/skia/SkiaUtils.h" | 37 #include "platform/graphics/skia/SkiaUtils.h" |
38 #include "platform/transforms/AffineTransform.h" | 38 #include "platform/transforms/AffineTransform.h" |
39 #include "third_party/skia/include/pathops/SkPathOps.h" | 39 #include "third_party/skia/include/pathops/SkPathOps.h" |
40 #include "wtf/MathExtras.h" | 40 #include "wtf/MathExtras.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace blink { |
43 | 43 |
44 Path::Path() | 44 Path::Path() |
45 : m_path() | 45 : m_path() |
46 { | 46 { |
47 } | 47 } |
48 | 48 |
49 Path::Path(const Path& other) | 49 Path::Path(const Path& other) |
50 { | 50 { |
51 m_path = SkPath(other.m_path); | 51 m_path = SkPath(other.m_path); |
52 } | 52 } |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 | 499 |
500 #if ENABLE(ASSERT) | 500 #if ENABLE(ASSERT) |
501 bool ellipseIsRenderable(float startAngle, float endAngle) | 501 bool ellipseIsRenderable(float startAngle, float endAngle) |
502 { | 502 { |
503 return (std::abs(endAngle - startAngle) < twoPiFloat) | 503 return (std::abs(endAngle - startAngle) < twoPiFloat) |
504 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat); | 504 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat); |
505 } | 505 } |
506 #endif | 506 #endif |
507 | 507 |
508 } | 508 } |
OLD | NEW |