REGRESSION(r240174): Wrong preprocessor guards in RenderImage::paintAreaElementFocusRing
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Jan 2019 03:25:44 +0000 (03:25 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Jan 2019 03:25:44 +0000 (03:25 +0000)
https://bugs.webkit.org/show_bug.cgi?id=193630

Reviewed by Daniel Bates.

r240174 inadvertently disabled this function on non-Apple platforms.

This fixes layout test fast/images/image-map-outline-in-positioned-container.html.

* rendering/RenderImage.cpp:
(WebCore::RenderImage::paintAreaElementFocusRing):

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

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderImage.cpp

index 1a5f36d..90323ea 100644 (file)
@@ -1,3 +1,17 @@
+2019-01-20  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        REGRESSION(r240174): Wrong preprocessor guards in RenderImage::paintAreaElementFocusRing
+        https://bugs.webkit.org/show_bug.cgi?id=193630
+
+        Reviewed by Daniel Bates.
+
+        r240174 inadvertently disabled this function on non-Apple platforms.
+
+        This fixes layout test fast/images/image-map-outline-in-positioned-container.html.
+
+        * rendering/RenderImage.cpp:
+        (WebCore::RenderImage::paintAreaElementFocusRing):
+
 2019-01-20  chris fleizach  <cfleizach@apple.com>
 
         AX: Support returning relative frames for accessibility
index 183a934..5162ac3 100644 (file)
@@ -550,7 +550,7 @@ void RenderImage::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
     
 void RenderImage::paintAreaElementFocusRing(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
 {
-#if ENABLE(FULL_KEYBOARD_ACCESS)
+#if !PLATFORM(IOS_FAMILY) || ENABLE(FULL_KEYBOARD_ACCESS)
     if (document().printing() || !frame().selection().isFocusedAndActive())
         return;