summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/Path.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/Path.h')
-rw-r--r--WebCore/platform/graphics/Path.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/WebCore/platform/graphics/Path.h b/WebCore/platform/graphics/Path.h
index d63ba0b..06e6ee4 100644
--- a/WebCore/platform/graphics/Path.h
+++ b/WebCore/platform/graphics/Path.h
@@ -30,7 +30,10 @@
#if PLATFORM(CG)
typedef struct CGPath PlatformPath;
#elif PLATFORM(QT)
+#include <qglobal.h>
+QT_BEGIN_NAMESPACE
class QPainterPath;
+QT_END_NAMESPACE
typedef QPainterPath PlatformPath;
#elif PLATFORM(SGL)
class SkPath;
@@ -43,6 +46,9 @@ namespace WebCore {
struct CairoPath;
}
typedef WebCore::CairoPath PlatformPath;
+#elif PLATFORM(SKIA)
+class SkPath;
+typedef SkPath PlatformPath;
#else
typedef void PlatformPath;
#endif
@@ -95,8 +101,8 @@ namespace WebCore {
void moveTo(const FloatPoint&);
void addLineTo(const FloatPoint&);
- void addQuadCurveTo(const FloatPoint& controlPoint, const FloatPoint& point);
- void addBezierCurveTo(const FloatPoint& controlPoint1, const FloatPoint& controlPoint2, const FloatPoint&);
+ void addQuadCurveTo(const FloatPoint& controlPoint, const FloatPoint& endPoint);
+ void addBezierCurveTo(const FloatPoint& controlPoint1, const FloatPoint& controlPoint2, const FloatPoint& endPoint);
void addArcTo(const FloatPoint&, const FloatPoint&, float radius);
void closeSubpath();
@@ -106,9 +112,6 @@ namespace WebCore {
void translate(const FloatSize&);
- void setWindingRule(WindRule rule) { m_rule = rule; }
- WindRule windingRule() const { return m_rule; }
-
String debugString() const;
PlatformPath* platformPath() const { return m_path; }
@@ -125,7 +128,6 @@ namespace WebCore {
private:
PlatformPath* m_path;
- WindRule m_rule;
};
}