Index: Source/modules/accessibility/AXObjectCacheImpl.cpp |
diff --git a/Source/modules/accessibility/AXObjectCacheImpl.cpp b/Source/modules/accessibility/AXObjectCacheImpl.cpp |
index 48f739ff499886ff54bb0b67ad913b4537a521c8..47e682327e3cefda1c7c49d26d45ac68e9ec2e56 100644 |
--- a/Source/modules/accessibility/AXObjectCacheImpl.cpp |
+++ b/Source/modules/accessibility/AXObjectCacheImpl.cpp |
@@ -259,8 +259,8 @@ PassRefPtr<AXObject> AXObjectCacheImpl::createFromRenderer(LayoutObject* layoutO |
// If the node is aria role="list" or the aria role is empty and its a |
// ul/ol/dl type (it shouldn't be a list if aria says otherwise). |
- if (node && ((nodeHasRole(node, "list") || nodeHasRole(node, "directory")) |
- || (nodeHasRole(node, nullAtom) && (isHTMLUListElement(*node) || isHTMLOListElement(*node) || isHTMLDListElement(*node))))) |
+ if (nodeHasRole(node, "list") || nodeHasRole(node, "directory") |
+ || (nodeHasRole(node, nullAtom) && (isHTMLUListElement(node) || isHTMLOListElement(node) || isHTMLDListElement(node)))) |
return AXList::create(layoutObject, this); |
// aria tables |