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

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: Rebase 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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 AXObjectInclusion AXLayoutObject::defaultObjectInclusion(IgnoredReasons* ignored Reasons) const 562 AXObjectInclusion AXLayoutObject::defaultObjectInclusion(IgnoredReasons* ignored Reasons) const
563 { 563 {
564 // The following cases can apply to any element that's a subclass of AXLayou tObject. 564 // The following cases can apply to any element that's a subclass of AXLayou tObject.
565 565
566 if (!m_layoutObject) { 566 if (!m_layoutObject) {
567 if (ignoredReasons) 567 if (ignoredReasons)
568 ignoredReasons->append(IgnoredReason(AXNotRendered)); 568 ignoredReasons->append(IgnoredReason(AXNotRendered));
569 return IgnoreObject; 569 return IgnoreObject;
570 } 570 }
571 571
572 if (m_layoutObject->style()->visibility() != VISIBLE) { 572 if (m_layoutObject->style()->visibility() != EVisibility::Visible) {
573 // aria-hidden is meant to override visibility as the determinant in AX hierarchy inclusion. 573 // aria-hidden is meant to override visibility as the determinant in AX hierarchy inclusion.
574 if (equalIgnoringCase(getAttribute(aria_hiddenAttr), "false")) 574 if (equalIgnoringCase(getAttribute(aria_hiddenAttr), "false"))
575 return DefaultBehavior; 575 return DefaultBehavior;
576 576
577 if (ignoredReasons) 577 if (ignoredReasons)
578 ignoredReasons->append(IgnoredReason(AXNotVisible)); 578 ignoredReasons->append(IgnoredReason(AXNotVisible));
579 return IgnoreObject; 579 return IgnoreObject;
580 } 580 }
581 581
582 return AXObject::defaultObjectInclusion(ignoredReasons); 582 return AXObject::defaultObjectInclusion(ignoredReasons);
(...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after
2570 result.unite(labelRect); 2570 result.unite(labelRect);
2571 } 2571 }
2572 } 2572 }
2573 } 2573 }
2574 } 2574 }
2575 2575
2576 return result; 2576 return result;
2577 } 2577 }
2578 2578
2579 } // namespace blink 2579 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698