| Index: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
|
| diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
|
| index b9a4bc3c5f7f2e6f63f1ad2858abd86a54517e6b..aa057bec292c36dd610b31d6c61c5ce2148b57ee 100644
|
| --- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
|
| @@ -1532,14 +1532,9 @@ AXObject* AXLayoutObject::computeParent() const
|
| if (parentObj)
|
| return axObjectCache().getOrCreate(parentObj);
|
|
|
| - // A WebArea's parent should be the containing frame (if local) or page popup owner.
|
| + // A WebArea's parent should be the page popup owner, if any, otherwise null.
|
| if (isWebArea()) {
|
| LocalFrame* frame = m_layoutObject->frame();
|
| - if (frame->owner() && frame->owner()->isLocal()) {
|
| - HTMLFrameOwnerElement* owner = toHTMLFrameOwnerElement(frame->owner());
|
| - if (owner && owner->layoutObject())
|
| - return axObjectCache().getOrCreate(owner->layoutObject());
|
| - }
|
| return axObjectCache().getOrCreate(frame->pagePopupOwner());
|
| }
|
|
|
| @@ -1565,14 +1560,9 @@ AXObject* AXLayoutObject::computeParentIfExists() const
|
| if (parentObj)
|
| return axObjectCache().get(parentObj);
|
|
|
| - // A WebArea's parent should be the containing frame (if local) or page popup owner.
|
| + // A WebArea's parent should be the page popup owner, if any, otherwise null.
|
| if (isWebArea()) {
|
| LocalFrame* frame = m_layoutObject->frame();
|
| - if (frame->owner() && frame->owner()->isLocal()) {
|
| - HTMLFrameOwnerElement* owner = toHTMLFrameOwnerElement(frame->owner());
|
| - if (owner && owner->layoutObject())
|
| - return axObjectCache().get(owner->layoutObject());
|
| - }
|
| return axObjectCache().get(frame->pagePopupOwner());
|
| }
|
|
|
| @@ -1663,7 +1653,6 @@ void AXLayoutObject::addChildren()
|
| }
|
|
|
| addHiddenChildren();
|
| - addFrameChildren();
|
| addPopupChildren();
|
| addImageMapChildren();
|
| addTextFieldChildren();
|
| @@ -2452,24 +2441,6 @@ void AXLayoutObject::addCanvasChildren()
|
| AXNodeObject::addChildren();
|
| }
|
|
|
| -void AXLayoutObject::addFrameChildren()
|
| -{
|
| - if (!m_layoutObject || !m_layoutObject->isLayoutPart())
|
| - return;
|
| -
|
| - Widget* widget = toLayoutPart(m_layoutObject)->widget();
|
| - if (!widget || !widget->isFrameView())
|
| - return;
|
| -
|
| - Document* doc = toFrameView(widget)->frame().document();
|
| - if (!doc || !doc->layoutView())
|
| - return;
|
| -
|
| - AXObject* axChildFrame = axObjectCache().getOrCreate(doc);
|
| - if (!axChildFrame->accessibilityIsIgnored())
|
| - m_children.append(axChildFrame);
|
| -}
|
| -
|
| void AXLayoutObject::addPopupChildren()
|
| {
|
| if (!isHTMLInputElement(node()))
|
|
|