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

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

Issue 51743003: Treat inert nodes as aria-hidden instead of aria-disabled. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename, expectations, etc Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 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 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 // We don't contemplate RadioButtonRole, as it depends on the input 965 // We don't contemplate RadioButtonRole, as it depends on the input
966 // type. 966 // type.
967 967
968 return ButtonRole; 968 return ButtonRole;
969 } 969 }
970 970
971 bool AXObject::ariaIsHidden() const 971 bool AXObject::ariaIsHidden() const
972 { 972 {
973 if (equalIgnoringCase(getAttribute(aria_hiddenAttr), "true")) 973 if (equalIgnoringCase(getAttribute(aria_hiddenAttr), "true"))
974 return true; 974 return true;
975 if (node() && node()->isInert())
976 return true;
975 977
976 for (AXObject* object = parentObject(); object; object = object->parentObjec t()) { 978 for (AXObject* object = parentObject(); object; object = object->parentObjec t()) {
977 if (equalIgnoringCase(object->getAttribute(aria_hiddenAttr), "true")) 979 if (equalIgnoringCase(object->getAttribute(aria_hiddenAttr), "true"))
978 return true; 980 return true;
979 } 981 }
980 982
981 return false; 983 return false;
982 } 984 }
983 985
984 } // namespace WebCore 986 } // namespace WebCore
OLDNEW
« Source/core/accessibility/AXObject.h ('K') | « Source/core/accessibility/AXObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698