Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Unified Diff: Source/core/accessibility/AXTable.cpp

Issue 370073002: Use type cast macro for AnimatableLengthPoint|3D instead of manual toFoo() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/accessibility/AXTable.cpp
diff --git a/Source/core/accessibility/AXTable.cpp b/Source/core/accessibility/AXTable.cpp
index f40655cf7bb3e6a6d78d97b99ffc87ff047d94fb..d1c8f77ba3a435399f362a6ef1004f58a833c5b7 100644
--- a/Source/core/accessibility/AXTable.cpp
+++ b/Source/core/accessibility/AXTable.cpp
@@ -145,8 +145,7 @@ bool AXTable::isDataTable() const
if (elementHasAriaRole(rowElement))
return false;
if (rowElement->hasTagName(trTag)) {
- HTMLTableRowElement* row = static_cast<HTMLTableRowElement*>(rowElement);
- RefPtrWillBeRawPtr<HTMLCollection> cells = row->cells();
+ RefPtrWillBeRawPtr<HTMLCollection> cells = toHTMLTableRowElement(rowElement)->cells();
for (unsigned cellIndex = 0; cellIndex < cells->length(); ++cellIndex) {
if (elementHasAriaRole(cells->item(cellIndex)))
return false;
« no previous file with comments | « Source/core/accessibility/AXSpinButton.cpp ('k') | Source/core/animation/animatable/AnimatableLengthPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698