Another attempt to fix the iOS build following <https://trac.webkit.org/changeset...
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Jan 2019 23:45:42 +0000 (23:45 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Jan 2019 23:45:42 +0000 (23:45 +0000)
(https://bugs.webkit.org/show_bug.cgi?id=193583)

Substitute ENABLE(FULL_KEYBOARD_ACCESS) for PLATFORM(MAC). On Mac, we always build with
ENABLE(FULL_KEYBOARD_ACCESS) enabled.

* rendering/RenderElement.cpp:
(WebCore::RenderElement::paintFocusRing):

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

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderElement.cpp

index 6495276..c3a928c 100644 (file)
@@ -1,5 +1,16 @@
 2019-01-18  Daniel Bates  <dabates@apple.com>
 
+        Another attempt to fix the iOS build following <https://trac.webkit.org/changeset/240174>
+        (https://bugs.webkit.org/show_bug.cgi?id=193583)
+
+        Substitute ENABLE(FULL_KEYBOARD_ACCESS) for PLATFORM(MAC). On Mac, we always build with
+        ENABLE(FULL_KEYBOARD_ACCESS) enabled.
+
+        * rendering/RenderElement.cpp:
+        (WebCore::RenderElement::paintFocusRing):
+
+2019-01-18  Daniel Bates  <dabates@apple.com>
+
         Fix some build issues.
 
         Including UIKitSoftLinking.h is not compatible with unified builds.
index 15c9a35..2f2f3c1 100644 (file)
@@ -1820,7 +1820,7 @@ void RenderElement::paintFocusRing(PaintInfo& paintInfo, const RenderStyle& styl
         pixelSnappedFocusRingRects.append(snapRectToDevicePixels(rect, deviceScaleFactor));
     }
     // FIXME: The following code should only be compiled for Mac. See <https://bugs.webkit.org/show_bug.cgi?id=193591>.
-#if PLATFORM(COCOA)
+#if ENABLE(FULL_KEYBOARD_ACCESS)
     bool needsRepaint;
     if (style.hasBorderRadius()) {
         Path path = PathUtilities::pathWithShrinkWrappedRectsForOutline(pixelSnappedFocusRingRects, style.border(), outlineOffset, style.direction(), style.writingMode(),