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

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

Issue 2833843005: Handling of different types of empty alt (Closed)
Patch Set: Ready to land Created 3 years, 8 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 a1685aee192d96b73f9b73c5c863d3175e4ebc5c..a1e12cfb4a719699e787889d5485f5da85d60c00 100644
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm
@@ -860,7 +860,7 @@ NSString* const NSAccessibilityRequiredAttribute = @"AXRequired";
// Given an image where there's no other title, return the base part
// of the filename as the description.
if ([[self role] isEqualToString:NSAccessibilityImageRole]) {
- if (browserAccessibility_->HasStringAttribute(ui::AX_ATTR_NAME))
+ if (browserAccessibility_->HasExplicitlyEmptyName())
return @"";
if ([self titleUIElement])
return @"";

Powered by Google App Engine
This is Rietveld 408576698