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

Unified Diff: content/browser/accessibility/browser_accessibility_cocoa.mm

Issue 994373003: Calls BrowserAccessibility::IsCellOrTableHeaderRole() with a correct instance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: content/browser/accessibility/browser_accessibility_cocoa.mm
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.mm b/content/browser/accessibility/browser_accessibility_cocoa.mm
index 88487ca1d1e199cc1ee611bdedd1394816e3c337..b9e32d1ebb8384d4fef4b05380fbe8064159455f 100644
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm
@@ -237,7 +237,7 @@ NSDictionary* attributeToMethodNameMap = nil;
}
- (NSValue*)columnIndexRange {
- if (!browserAccessibility_->IsCellOrTableHeaderRole())
+ if (!browserAccessibility_->IsCellOrTableHeaderRole([self internalRole]))
return nil;
int column = -1;
@@ -710,7 +710,7 @@ NSDictionary* attributeToMethodNameMap = nil;
}
- (NSValue*)rowIndexRange {
- if (!browserAccessibility_->IsCellOrTableHeaderRole())
+ if (!browserAccessibility_->IsCellOrTableHeaderRole([self internalRole]))
return nil;
int row = -1;
@@ -1146,7 +1146,7 @@ NSDictionary* attributeToMethodNameMap = nil;
j < child->PlatformChildCount();
++j) {
BrowserAccessibility* cell = child->PlatformGetChild(j);
- if (!browserAccessibility_->IsCellOrTableHeaderRole())
+ if (!browserAccessibility_->IsCellOrTableHeaderRole(cell->GetRole()))
dmazzoni 2015/03/11 16:31:41 I think this line was the one that had the bug, ri
je_julie(Not used) 2015/03/11 23:21:16 You're right. I didn't see it correctly. On 2015/
continue;
int colIndex;
if (!cell->GetIntAttribute(

Powered by Google App Engine
This is Rietveld 408576698