Title: [270172] trunk/Source/WebCore
Revision
270172
Author
[email protected]
Date
2020-11-26 17:21:57 -0800 (Thu, 26 Nov 2020)

Log Message

AXObjectCache::focusedObjectForPage() is not defined when ENABLE(ACCESSIBILITY) is off
https://bugs.webkit.org/show_bug.cgi?id=219290

Reviewed by Chris Fleizach.

Define AXObjectCache::focusedObjectForPage() as a function which
returns a nullptr.

* accessibility/AXObjectCache.h:
(WebCore::AXObjectCache::focusedObjectForPage): Defined.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (270171 => 270172)


--- trunk/Source/WebCore/ChangeLog	2020-11-27 00:48:29 UTC (rev 270171)
+++ trunk/Source/WebCore/ChangeLog	2020-11-27 01:21:57 UTC (rev 270172)
@@ -1,3 +1,16 @@
+2020-11-26  Yoshiaki Jitsukawa  <[email protected]>
+
+        AXObjectCache::focusedObjectForPage() is not defined when ENABLE(ACCESSIBILITY) is off
+        https://bugs.webkit.org/show_bug.cgi?id=219290
+
+        Reviewed by Chris Fleizach.
+
+        Define AXObjectCache::focusedObjectForPage() as a function which
+        returns a nullptr.
+
+        * accessibility/AXObjectCache.h:
+        (WebCore::AXObjectCache::focusedObjectForPage): Defined.
+
 2020-11-26  Youenn Fablet  <[email protected]>
 
         https://collab-project.github.io/videojs-record/demo/video-only.html is not working

Modified: trunk/Source/WebCore/accessibility/AXObjectCache.h (270171 => 270172)


--- trunk/Source/WebCore/accessibility/AXObjectCache.h	2020-11-27 00:48:29 UTC (rev 270171)
+++ trunk/Source/WebCore/accessibility/AXObjectCache.h	2020-11-27 01:21:57 UTC (rev 270172)
@@ -145,7 +145,6 @@
     ~AXObjectCache();
 
     WEBCORE_EXPORT AXCoreObject* focusedUIElementForPage(const Page*);
-    static AXCoreObject* focusedObjectForPage(const Page*);
 
     // Returns the root object for the entire document.
     WEBCORE_EXPORT AXCoreObject* rootObject();
@@ -202,6 +201,8 @@
     WEBCORE_EXPORT static void enableAccessibility();
     WEBCORE_EXPORT static void disableAccessibility();
 
+    static AXCoreObject* focusedObjectForPage(const Page*);
+
     // Enhanced user interface accessibility can be toggled by the assistive technology.
     WEBCORE_EXPORT static void setEnhancedUserInterfaceAccessibility(bool flag);
     
@@ -209,6 +210,7 @@
     static bool accessibilityEnabled() { return gAccessibilityEnabled; }
     static bool accessibilityEnhancedUserInterfaceEnabled() { return gAccessibilityEnhancedUserInterfaceEnabled; }
 #else
+    static AXCoreObject* focusedObjectForPage(const Page*) { return nullptr; }
     static void enableAccessibility() { }
     static void disableAccessibility() { }
     static void setEnhancedUserInterfaceAccessibility(bool) { }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to