[Webkit-unassigned] [Bug 91073] Add accessible for QWebView.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 13 04:22:51 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=91073


Simon Hausmann <hausmann at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #151926|review?                     |review-
               Flag|                            |




--- Comment #4 from Simon Hausmann <hausmann at webkit.org>  2012-07-13 04:22:51 PST ---
(From update of attachment 151926)
View in context: https://bugs.webkit.org/attachment.cgi?id=151926&action=review

A few comments. I like the approach of doing this in small steps, this being the first one. Let's do one more round because of the coding style and the accesslbeInterfaceFactory function placement. I think ideally it should be static somewhere, alternatively it should be namespaced.

> Source/WebKit/qt/Api/qwebviewaccessible.cpp:28
> +QAccessibleInterface* accessibleInterfaceFactory(const QString& key, QObject* object)

Would it make perhaps sense to move this into qwebpage.cpp where it is called/used and make it a static function there?

> Source/WebKit/qt/Api/qwebviewaccessible.cpp:32
> +    if (QWebPage *page = qobject_cast<QWebPage*>(object))

Coding style nitpick, * placement :)

> Source/WebKit/qt/Api/qwebviewaccessible.cpp:35
> +    if (QWebView *view = qobject_cast<QWebView*>(object))

Ditto.

> Source/WebKit/qt/Api/qwebviewaccessible.cpp:38
> +    if (QWebFrame *frame = qobject_cast<QWebFrame*>(object))

Ditto.

> Source/WebKit/qt/Api/qwebviewaccessible.cpp:71
> +//    WebCore::Document* document = frame()->d->frame->document();
> +//    if (!document || !document->axObjectCache())
> +//        return 0;
> +//    WebCore::AccessibilityObject* rootAccessible = document->axObjectCache()->rootObject();
> +//    return rootAccessible ? 1 : 0;

We probably shouldn't land the code that is commented out.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list