[BlackBerry] GraphicsContext: add fillRule parameter to clip() and canvasClip()
[WebKit-https.git] / Source / WebCore / platform / graphics / blackberry / PathBlackBerry.cpp
index ba8ea19..8b9bb57 100644 (file)
@@ -255,7 +255,8 @@ void GraphicsContext::drawLineForText(const FloatPoint& pt, float width, bool pr
     platformContext()->addDrawLineForText(pt, width, printing);
 }
 
-void GraphicsContext::clip(const Path& path)
+// FIXME: don't ignore the winding rule. https://bugs.webkit.org/show_bug.cgi?id=107064
+void GraphicsContext::clip(const Path& path, WindRule)
 {
     BlackBerry::Platform::Graphics::Path* pp = path.platformPath();
     pp->applyAsClip(platformContext());
@@ -269,9 +270,9 @@ void GraphicsContext::clipPath(const Path& path, WindRule clipRule)
         clip(path);
 }
 
-void GraphicsContext::canvasClip(const Path& path)
+void GraphicsContext::canvasClip(const Path& path, WindRule fillRule)
 {
-    clip(path);
+    clip(path, fillRule);
 }
 
 void GraphicsContext::clipOut(const Path& path)