Fix the iOS build after r168476.
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 May 2014 19:19:50 +0000 (19:19 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 May 2014 19:19:50 +0000 (19:19 +0000)
* platform/graphics/mac/GraphicsContextMac.mm:
(WebCore::GraphicsContext::drawFocusRing):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@168483 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/mac/GraphicsContextMac.mm

index ce375c7b950d9fc038841eb376646d69eb25dbab..ffbe9d6ca9a879a22d6d3805bcf9099bac1b6313 100644 (file)
@@ -1,3 +1,10 @@
+2014-05-08  Tim Horton  <timothy_horton@apple.com>
+
+        Fix the iOS build after r168476.
+
+        * platform/graphics/mac/GraphicsContextMac.mm:
+        (WebCore::GraphicsContext::drawFocusRing):
+
 2014-05-08  Bem Jones-Bey  <bjonesbe@adobe.com>
 
         [CSS Shapes] Shapes do not resolve dimensions specified in viewport units
index 42f37e288435fb215369c97929b88f6bec59d29b..5950e5ce186d063ed2cf4219141a3916c5c01671 100644 (file)
@@ -69,15 +69,19 @@ static bool drawFocusRingToContextAtTime(CGContextRef context, CGPathRef focusRi
     CGContextAddPath(context, focusRingPath);
     return wkDrawFocusRingAtTime(context, timeOffset);
 }
+#endif // !PLATFORM(IOS)
 
 void GraphicsContext::drawFocusRing(const Path& path, int /* width */, int /* offset */, const Color&)
 {
+#if PLATFORM(MAC)
     if (paintingDisabled() || path.isNull())
         return;
 
     drawFocusRingToContext(platformContext(), path.platformPath());
+#else
+    UNUSED_PARAM(path);
+#endif
 }
-#endif // !PLATFORM(IOS)
 
 #if PLATFORM(MAC)
 void GraphicsContext::drawFocusRing(const Vector<IntRect>& rects, int width, int offset, double timeOffset, bool& needsRedraw)