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

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

Issue 2181953004: Changed ComputedStyle's EVisibility to be an enum class and fixed naming (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_move_computedstyle_around
Patch Set: Added underlying type notes 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
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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 AXObjectInclusion AXLayoutObject::defaultObjectInclusion(IgnoredReasons* ignored Reasons) const 564 AXObjectInclusion AXLayoutObject::defaultObjectInclusion(IgnoredReasons* ignored Reasons) const
565 { 565 {
566 // The following cases can apply to any element that's a subclass of AXLayou tObject. 566 // The following cases can apply to any element that's a subclass of AXLayou tObject.
567 567
568 if (!m_layoutObject) { 568 if (!m_layoutObject) {
569 if (ignoredReasons) 569 if (ignoredReasons)
570 ignoredReasons->append(IgnoredReason(AXNotRendered)); 570 ignoredReasons->append(IgnoredReason(AXNotRendered));
571 return IgnoreObject; 571 return IgnoreObject;
572 } 572 }
573 573
574 if (m_layoutObject->style()->visibility() != VISIBLE) { 574 if (m_layoutObject->style()->visibility() != EVisibility::Visible) {
575 // aria-hidden is meant to override visibility as the determinant in AX hierarchy inclusion. 575 // aria-hidden is meant to override visibility as the determinant in AX hierarchy inclusion.
576 if (equalIgnoringCase(getAttribute(aria_hiddenAttr), "false")) 576 if (equalIgnoringCase(getAttribute(aria_hiddenAttr), "false"))
577 return DefaultBehavior; 577 return DefaultBehavior;
578 578
579 if (ignoredReasons) 579 if (ignoredReasons)
580 ignoredReasons->append(IgnoredReason(AXNotVisible)); 580 ignoredReasons->append(IgnoredReason(AXNotVisible));
581 return IgnoreObject; 581 return IgnoreObject;
582 } 582 }
583 583
584 return AXObject::defaultObjectInclusion(ignoredReasons); 584 return AXObject::defaultObjectInclusion(ignoredReasons);
(...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after
2587 result.unite(labelRect); 2587 result.unite(labelRect);
2588 } 2588 }
2589 } 2589 }
2590 } 2590 }
2591 } 2591 }
2592 2592
2593 return result; 2593 return result;
2594 } 2594 }
2595 2595
2596 } // namespace blink 2596 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698