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 52ecb9ff71f585200c1f3391178697417f1baa80..36e1f3bd274a99a43c54a7108cbd27352871a82a 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())) |