OSDN Git Service

webKit vbuf backend: Editable text fields seem to sometimes have children with no...
authorJames Teh <jamie@jantrid.net>
Tue, 6 Dec 2011 10:10:00 +0000 (20:10 +1000)
committerJames Teh <jamie@jantrid.net>
Tue, 6 Dec 2011 10:10:00 +0000 (20:10 +1000)
nvdaHelper/vbufBackends/webKit/webKit.cpp

index 54f00cf..e090ea4 100644 (file)
@@ -135,7 +135,11 @@ VBufStorage_fieldNode_t* WebKitVBufBackend_t::fillVBuf(int docHandle, IAccessibl
 \r
        //Get the child count\r
        long childCount=0;\r
-       if(role==ROLE_SYSTEM_COMBOBOX||(role==ROLE_SYSTEM_LIST&&!(states&STATE_SYSTEM_READONLY))) {\r
+       if (role == ROLE_SYSTEM_COMBOBOX\r
+                       || (role == ROLE_SYSTEM_LIST && !(states & STATE_SYSTEM_READONLY))\r
+                       // Editable text fields sometimes have children with no content.\r
+                       || (role == ROLE_SYSTEM_TEXT && states & STATE_SYSTEM_FOCUSABLE)\r
+               ) {\r
                // We don't want this node's children.\r
                childCount=0;\r
        } else\r