| Index: Source/modules/accessibility/AXLayoutObject.cpp
|
| diff --git a/Source/modules/accessibility/AXLayoutObject.cpp b/Source/modules/accessibility/AXLayoutObject.cpp
|
| index 035cedc08aba8d7f9a781657f0474b85ed540ae9..20061bd29f55dc09c7eafa8492443d3ceba7cc53 100644
|
| --- a/Source/modules/accessibility/AXLayoutObject.cpp
|
| +++ b/Source/modules/accessibility/AXLayoutObject.cpp
|
| @@ -1244,7 +1244,7 @@ bool AXLayoutObject::ariaRoleHasPresentationalChildren() const
|
| AXObject* AXLayoutObject::ancestorForWhichThisIsAPresentationalChild() const
|
| {
|
| // Walk the parent chain looking for a parent that has presentational children
|
| - AXObject* parent = parentObject();
|
| + AXObject* parent = parentObjectIfExists();
|
| while (parent) {
|
| if (parent->ariaRoleHasPresentationalChildren())
|
| break;
|
| @@ -1582,6 +1582,7 @@ AXObject* AXLayoutObject::elementAccessibilityHitTest(const IntPoint& point) con
|
|
|
| AXObject* AXLayoutObject::computeParent() const
|
| {
|
| + ASSERT(!isDetached());
|
| if (!m_layoutObject)
|
| return 0;
|
|
|
| @@ -1695,6 +1696,7 @@ AXObject* AXLayoutObject::nextSibling() const
|
|
|
| void AXLayoutObject::addChildren()
|
| {
|
| + ASSERT(!isDetached());
|
| // If the need to add more children in addition to existing children arises,
|
| // childrenChanged should have been called, leaving the object with no children.
|
| ASSERT(!m_haveChildren);
|
|
|