Index: Source/platform/graphics/Path.cpp |
diff --git a/Source/platform/graphics/Path.cpp b/Source/platform/graphics/Path.cpp |
index 44c455e4e2a03f67516310829b6238b8bd9e3d06..a22acbef2a5438fea9de68f1e25753c4162510cc 100644 |
--- a/Source/platform/graphics/Path.cpp |
+++ b/Source/platform/graphics/Path.cpp |
@@ -482,6 +482,16 @@ void Path::translate(const FloatSize& size) |
m_path.offset(WebCoreFloatToSkScalar(size.width()), WebCoreFloatToSkScalar(size.height())); |
} |
+bool Path::subtractPath(const Path& other) |
+{ |
+ return Op(m_path, other.m_path, kDifference_PathOp, &m_path); |
+} |
+ |
+bool Path::intersectPath(const Path& other) |
+{ |
+ return Op(m_path, other.m_path, kIntersect_PathOp, &m_path); |
+} |
+ |
bool Path::unionPath(const Path& other) |
{ |
return Op(m_path, other.m_path, kUnion_PathOp, &m_path); |