REGRESSION(r222640) [GTK] Build broken with ATK 2.14
authorjdiggs@igalia.com <jdiggs@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Oct 2017 12:17:24 +0000 (12:17 +0000)
committerjdiggs@igalia.com <jdiggs@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Oct 2017 12:17:24 +0000 (12:17 +0000)
https://bugs.webkit.org/show_bug.cgi?id=177634

Reviewed by Michael Catanzaro.

Use ATK_CHECK_VERSION to prevent the build failure.

No new tests. This fixes a downstream build failure.

* accessibility/atk/AXObjectCacheAtk.cpp:
(WebCore::AXObjectCache::postPlatformNotification):

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

Source/WebCore/ChangeLog
Source/WebCore/accessibility/atk/AXObjectCacheAtk.cpp

index 0156705..72dafd3 100644 (file)
@@ -1,3 +1,17 @@
+2017-10-02  Joanmarie Diggs  <jdiggs@igalia.com>
+
+        REGRESSION(r222640) [GTK] Build broken with ATK 2.14
+        https://bugs.webkit.org/show_bug.cgi?id=177634
+
+        Reviewed by Michael Catanzaro.
+
+        Use ATK_CHECK_VERSION to prevent the build failure.
+
+        No new tests. This fixes a downstream build failure.
+
+        * accessibility/atk/AXObjectCacheAtk.cpp:
+        (WebCore::AXObjectCache::postPlatformNotification):
+
 2017-10-01  Ryosuke Niwa  <rniwa@webkit.org>
 
         Pasteboard shouldn't add "Files" as a type
index 085df88..96eb89e 100644 (file)
@@ -271,7 +271,9 @@ void AXObjectCache::postPlatformNotification(AccessibilityObject* coreObject, AX
         break;
 
     case AXReadOnlyStatusChanged:
+#if ATK_CHECK_VERSION(2,15,3)
         atk_object_notify_state_change(axObject, ATK_STATE_READ_ONLY, !coreObject->canSetValueAttribute());
+#endif
         break;
 
     case AXRequiredStatusChanged: