| Index: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| index 18cb7f157e6a1fb4740a695867431d2b414ee637..b245e4fce96d749cb6b022236d06d1e323461ec3 100644
|
| --- a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| +++ b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| @@ -65,6 +65,7 @@
|
| #include "modules/accessibility/AXMenuListOption.h"
|
| #include "modules/accessibility/AXMenuListPopup.h"
|
| #include "modules/accessibility/AXProgressIndicator.h"
|
| +#include "modules/accessibility/AXRadioInput.h"
|
| #include "modules/accessibility/AXSVGRoot.h"
|
| #include "modules/accessibility/AXSlider.h"
|
| #include "modules/accessibility/AXSpinButton.h"
|
| @@ -305,6 +306,9 @@ AXObject* AXObjectCacheImpl::createFromRenderer(LayoutObject* layoutObject)
|
| if (isHTMLOptionElement(node))
|
| return AXListBoxOption::create(layoutObject, *this);
|
|
|
| + if (isHTMLInputElement(node) && toHTMLInputElement(node)->isRadioButton())
|
| + return AXRadioInput::create(layoutObject, *this);
|
| +
|
| if (layoutObject->isSVGRoot())
|
| return AXSVGRoot::create(layoutObject, *this);
|
|
|
| @@ -932,6 +936,24 @@ void AXObjectCacheImpl::listboxActiveIndexChanged(HTMLSelectElement* select)
|
| toAXListBox(obj)->activeIndexChanged();
|
| }
|
|
|
| +void AXObjectCacheImpl::radiobuttonRemovedFromGroup(HTMLInputElement* groupMember)
|
| +{
|
| + AXObject* obj = get(groupMember);
|
| + if (!obj || !obj->isAXRadioInput())
|
| + return;
|
| +
|
| + // The 'posInSet' and 'setSize' attributes should be updated from the first node,
|
| + // as the removed node is already detached from tree.
|
| + HTMLInputElement* firstRadio = toAXRadioInput(obj)->findFirstFocusableRadioButtonInGroup(groupMember);
|
| + AXObject* firstObj = get(firstRadio);
|
| + if (!firstObj || !firstObj->isAXRadioInput())
|
| + return;
|
| +
|
| + toAXRadioInput(firstObj)->updatePosAndSetSize(1);
|
| + postNotification(firstObj, AXAriaAttributeChanged);
|
| + toAXRadioInput(firstObj)->requestUpdateToNextNode(true);
|
| +}
|
| +
|
| void AXObjectCacheImpl::handleLayoutComplete(LayoutObject* layoutObject)
|
| {
|
| if (!layoutObject)
|
|
|