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

Side by Side Diff: Source/core/accessibility/AXRenderObject.cpp

Issue 651893002: Input type attribue in radio button state with menu as parent should be exposed with correct IA2 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 return CheckBoxMenuItemRole; 323 return CheckBoxMenuItemRole;
324 return CheckBoxRole; 324 return CheckBoxRole;
325 } 325 }
326 if (type == InputTypeNames::date) 326 if (type == InputTypeNames::date)
327 return DateRole; 327 return DateRole;
328 if (type == InputTypeNames::datetime 328 if (type == InputTypeNames::datetime
329 || type == InputTypeNames::datetime_local 329 || type == InputTypeNames::datetime_local
330 || type == InputTypeNames::month 330 || type == InputTypeNames::month
331 || type == InputTypeNames::week) 331 || type == InputTypeNames::week)
332 return DateTimeRole; 332 return DateTimeRole;
333 if (type == InputTypeNames::radio) 333 if (type == InputTypeNames::radio) {
334 if ((node->parentNode() && isHTMLMenuElement(node->parentNode())) || (parentObject() && parentObject()->roleValue() == MenuRole))
335 return MenuItemRadioRole;
Mike West 2014/10/13 13:42:40 Ditto.
334 return RadioButtonRole; 336 return RadioButtonRole;
337 }
335 if (input.isTextButton()) 338 if (input.isTextButton())
336 return buttonRoleType(); 339 return buttonRoleType();
337 if (type == InputTypeNames::color) 340 if (type == InputTypeNames::color)
338 return ColorWellRole; 341 return ColorWellRole;
339 if (type == InputTypeNames::time) 342 if (type == InputTypeNames::time)
340 return TimeRole; 343 return TimeRole;
341 } 344 }
342 345
343 if (isFileUploadButton()) 346 if (isFileUploadButton())
344 return ButtonRole; 347 return ButtonRole;
(...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after
2374 if (label && label->renderer()) { 2377 if (label && label->renderer()) {
2375 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect(); 2378 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect();
2376 result.unite(labelRect); 2379 result.unite(labelRect);
2377 } 2380 }
2378 } 2381 }
2379 2382
2380 return result; 2383 return result;
2381 } 2384 }
2382 2385
2383 } // namespace blink 2386 } // namespace blink
OLDNEW
« Source/core/accessibility/AXNodeObject.cpp ('K') | « Source/core/accessibility/AXNodeObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698