Chromium Code Reviews| Index: Source/modules/accessibility/AXTable.cpp |
| diff --git a/Source/modules/accessibility/AXTable.cpp b/Source/modules/accessibility/AXTable.cpp |
| index 1d75f2a06fc3f7e6bdeab171aac1e4cc8762f8f8..44c47e296afcf28066aeb52c5fe0f3586aa1118b 100644 |
| --- a/Source/modules/accessibility/AXTable.cpp |
| +++ b/Source/modules/accessibility/AXTable.cpp |
| @@ -374,8 +374,9 @@ void AXTable::addChildren() |
| AXObjectCacheImpl* axCache = axObjectCache(); |
| // Add caption |
| - if (HTMLTableElement* tableElement = toHTMLTableElement(table->node())) { |
| - if (HTMLTableCaptionElement* caption = tableElement->caption()) { |
| + Node* tableNode = table->node(); |
| + if (isHTMLTableElement(tableNode)) { |
|
dmazzoni
2015/01/14 08:00:02
Just return from this function if isHTMLTableEleme
|
| + if (HTMLTableCaptionElement* caption = toHTMLTableElement(tableNode)->caption()) { |
| AXObject* captionObject = axCache->getOrCreate(caption); |
| if (!captionObject->accessibilityIsIgnored()) |
| m_children.append(captionObject); |