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

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

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: Created 3 years, 11 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 if (ignoredReasons) 497 if (ignoredReasons)
498 ignoredReasons->push_back(IgnoredReason(AXNotVisible)); 498 ignoredReasons->push_back(IgnoredReason(AXNotVisible));
499 return IgnoreObject; 499 return IgnoreObject;
500 } 500 }
501 501
502 return AXObject::defaultObjectInclusion(ignoredReasons); 502 return AXObject::defaultObjectInclusion(ignoredReasons);
503 } 503 }
504 504
505 bool AXLayoutObject::computeAccessibilityIsIgnored( 505 bool AXLayoutObject::computeAccessibilityIsIgnored(
506 IgnoredReasons* ignoredReasons) const { 506 IgnoredReasons* ignoredReasons) const {
507 #if ENABLE(ASSERT) 507 #if DCHECK_IS_ON()
508 ASSERT(m_initialized); 508 ASSERT(m_initialized);
509 #endif 509 #endif
510 510
511 if (!m_layoutObject) 511 if (!m_layoutObject)
512 return true; 512 return true;
513 513
514 // Check first if any of the common reasons cause this element to be ignored. 514 // Check first if any of the common reasons cause this element to be ignored.
515 // Then process other use cases that need to be applied to all the various 515 // Then process other use cases that need to be applied to all the various
516 // roles that AXLayoutObjects take on. 516 // roles that AXLayoutObjects take on.
517 AXObjectInclusion decision = defaultObjectInclusion(ignoredReasons); 517 AXObjectInclusion decision = defaultObjectInclusion(ignoredReasons);
(...skipping 1972 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 2490
2491 bool AXLayoutObject::elementAttributeValue( 2491 bool AXLayoutObject::elementAttributeValue(
2492 const QualifiedName& attributeName) const { 2492 const QualifiedName& attributeName) const {
2493 if (!m_layoutObject) 2493 if (!m_layoutObject)
2494 return false; 2494 return false;
2495 2495
2496 return equalIgnoringCase(getAttribute(attributeName), "true"); 2496 return equalIgnoringCase(getAttribute(attributeName), "true");
2497 } 2497 }
2498 2498
2499 } // namespace blink 2499 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698