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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp

Issue 2215133005: Add grid/flex layout support for <fieldset> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed more ClusterFuzz tests Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, Google 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 530
531 if (getNode()->nodeName() == "TIME") 531 if (getNode()->nodeName() == "TIME")
532 return TimeRole; 532 return TimeRole;
533 533
534 if (isEmbeddedObject()) 534 if (isEmbeddedObject())
535 return EmbeddedObjectRole; 535 return EmbeddedObjectRole;
536 536
537 if (isHTMLHRElement(*getNode())) 537 if (isHTMLHRElement(*getNode()))
538 return SplitterRole; 538 return SplitterRole;
539 539
540 if (isFieldset()) {
541 return GroupRole;
542 }
543
540 return UnknownRole; 544 return UnknownRole;
541 } 545 }
542 546
543 AccessibilityRole AXNodeObject::determineAccessibilityRole() 547 AccessibilityRole AXNodeObject::determineAccessibilityRole()
544 { 548 {
545 if (!getNode()) 549 if (!getNode())
546 return UnknownRole; 550 return UnknownRole;
547 551
548 if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole) 552 if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole)
549 return m_ariaRole; 553 return m_ariaRole;
(...skipping 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after
2934 return placeholder; 2938 return placeholder;
2935 } 2939 }
2936 2940
2937 DEFINE_TRACE(AXNodeObject) 2941 DEFINE_TRACE(AXNodeObject)
2938 { 2942 {
2939 visitor->trace(m_node); 2943 visitor->trace(m_node);
2940 AXObject::trace(visitor); 2944 AXObject::trace(visitor);
2941 } 2945 }
2942 2946
2943 } // namespace blink 2947 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698