Changeset 35904 in webkit


Ignore:
Timestamp:
Aug 24, 2008 5:59:03 AM (16 years ago)
Author:
jhoneycutt@apple.com
Message:

2008-08-24 Jon Honeycutt <jhoneycutt@apple.com>

Cannot get the focused accessible object from the root object.

AccessibleBase::get_AccFocus() checks whether the focused object is a
child of the current object, but
http://msdn.microsoft.com/en-us/library/ms696150(VS.85).aspx states that
the result is the object itself, if it has focus, or a child object of
the active window, not a child of the object.

Reviewed by Sam Weinig.

  • AccessibleBase.cpp: (AccessibleBase::get_accFocus): Don't check whether the focused object is our child.
Location:
trunk/WebKit/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/win/AccessibleBase.cpp

    r35887 r35904  
    350350        return S_FALSE;
    351351
    352     // Only return the focused child if it's us or a child of us. Otherwise,
    353     // report VT_EMPTY.
    354352    if (focusedObj == m_object) {
    355353        V_VT(pvFocusedChild) = VT_I4;
    356354        V_I4(pvFocusedChild) = CHILDID_SELF;
    357     } else if (focusedObj->parentObject() == m_object) {
    358         V_VT(pvFocusedChild) = VT_DISPATCH;
    359         V_DISPATCH(pvFocusedChild) = wrapper(focusedObj);
    360         V_DISPATCH(pvFocusedChild)->AddRef();
    361     }
    362 
     355        return S_OK;
     356    }
     357
     358    V_VT(pvFocusedChild) = VT_DISPATCH;
     359    V_DISPATCH(pvFocusedChild) = wrapper(focusedObj);
     360    V_DISPATCH(pvFocusedChild)->AddRef();
    363361    return S_OK;
    364362}
  • trunk/WebKit/win/ChangeLog

    r35897 r35904  
     12008-08-24  Jon Honeycutt  <jhoneycutt@apple.com>
     2
     3        Cannot get the focused accessible object from the root object.
     4
     5        AccessibleBase::get_AccFocus() checks whether the focused object is a
     6        child of the current object, but
     7        http://msdn.microsoft.com/en-us/library/ms696150(VS.85).aspx states that
     8        the result is the object itself, if it has focus, or a child object of
     9        the active window, not a child of the object.
     10
     11        Reviewed by Sam Weinig.
     12
     13        * AccessibleBase.cpp:
     14        (AccessibleBase::get_accFocus): Don't check whether the focused object
     15        is our child.
     16
    1172008-08-18  Jon Honeycutt  <jhoneycutt@apple.com>
    218
Note: See TracChangeset for help on using the changeset viewer.