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

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

Issue 2150003005: Add grid/flex layout support for <fieldset> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add grid/flex layout support for <fieldset> Created 4 years, 4 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 515
516 if (getNode()->nodeName() == "TIME") 516 if (getNode()->nodeName() == "TIME")
517 return TimeRole; 517 return TimeRole;
518 518
519 if (isEmbeddedObject()) 519 if (isEmbeddedObject())
520 return EmbeddedObjectRole; 520 return EmbeddedObjectRole;
521 521
522 if (isHTMLHRElement(*getNode())) 522 if (isHTMLHRElement(*getNode()))
523 return SplitterRole; 523 return SplitterRole;
524 524
525 if (isFieldset()) {
526 return GroupRole;
527 }
528
525 return UnknownRole; 529 return UnknownRole;
526 } 530 }
527 531
528 AccessibilityRole AXNodeObject::determineAccessibilityRole() 532 AccessibilityRole AXNodeObject::determineAccessibilityRole()
529 { 533 {
530 if (!getNode()) 534 if (!getNode())
531 return UnknownRole; 535 return UnknownRole;
532 536
533 if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole) 537 if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole)
534 return m_ariaRole; 538 return m_ariaRole;
(...skipping 2365 matching lines...) Expand 10 before | Expand all | Expand 10 after
2900 return placeholder; 2904 return placeholder;
2901 } 2905 }
2902 2906
2903 DEFINE_TRACE(AXNodeObject) 2907 DEFINE_TRACE(AXNodeObject)
2904 { 2908 {
2905 visitor->trace(m_node); 2909 visitor->trace(m_node);
2906 AXObject::trace(visitor); 2910 AXObject::trace(visitor);
2907 } 2911 }
2908 2912
2909 } // namespace blink 2913 } // 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