| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 }; | 360 }; |
| 361 | 361 |
| 362 } // namespace | 362 } // namespace |
| 363 | 363 |
| 364 AXObject::AXObject(AXObjectCacheImpl* axObjectCache) | 364 AXObject::AXObject(AXObjectCacheImpl* axObjectCache) |
| 365 : m_id(0) | 365 : m_id(0) |
| 366 , m_haveChildren(false) | 366 , m_haveChildren(false) |
| 367 , m_role(UnknownRole) | 367 , m_role(UnknownRole) |
| 368 , m_lastKnownIsIgnoredValue(DefaultBehavior) | 368 , m_lastKnownIsIgnoredValue(DefaultBehavior) |
| 369 , m_detached(false) | 369 , m_detached(false) |
| 370 , m_parent(0) | 370 , m_parent(nullptr) |
| 371 , m_lastModificationCount(-1) | 371 , m_lastModificationCount(-1) |
| 372 , m_cachedIsIgnored(false) | 372 , m_cachedIsIgnored(false) |
| 373 , m_cachedIsInertOrAriaHidden(false) | 373 , m_cachedIsInertOrAriaHidden(false) |
| 374 , m_cachedIsDescendantOfLeafNode(false) | 374 , m_cachedIsDescendantOfLeafNode(false) |
| 375 , m_cachedIsDescendantOfDisabledNode(false) | 375 , m_cachedIsDescendantOfDisabledNode(false) |
| 376 , m_cachedHasInheritedPresentationalRole(false) | 376 , m_cachedHasInheritedPresentationalRole(false) |
| 377 , m_cachedIsPresentationalChild(false) | 377 , m_cachedIsPresentationalChild(false) |
| 378 , m_cachedLiveRegionRoot(0) | 378 , m_cachedLiveRegionRoot(nullptr) |
| 379 , m_axObjectCache(axObjectCache) | 379 , m_axObjectCache(axObjectCache) |
| 380 { | 380 { |
| 381 } | 381 } |
| 382 | 382 |
| 383 AXObject::~AXObject() | 383 AXObject::~AXObject() |
| 384 { | 384 { |
| 385 #if !ENABLE(OILPAN) |
| 385 ASSERT(isDetached()); | 386 ASSERT(isDetached()); |
| 387 #endif |
| 386 } | 388 } |
| 387 | 389 |
| 388 void AXObject::detach() | 390 void AXObject::detach() |
| 389 { | 391 { |
| 390 // Clear any children and call detachFromParent on them so that | 392 // Clear any children and call detachFromParent on them so that |
| 391 // no children are left with dangling pointers to their parent. | 393 // no children are left with dangling pointers to their parent. |
| 392 clearChildren(); | 394 clearChildren(); |
| 393 | 395 |
| 394 m_detached = true; | 396 m_detached = true; |
| 395 } | 397 } |
| (...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1354 return roleNameVector->at(role); | 1356 return roleNameVector->at(role); |
| 1355 } | 1357 } |
| 1356 | 1358 |
| 1357 const AtomicString& AXObject::internalRoleName(AccessibilityRole role) | 1359 const AtomicString& AXObject::internalRoleName(AccessibilityRole role) |
| 1358 { | 1360 { |
| 1359 static const Vector<AtomicString>* internalRoleNameVector = createInternalRo
leNameVector(); | 1361 static const Vector<AtomicString>* internalRoleNameVector = createInternalRo
leNameVector(); |
| 1360 | 1362 |
| 1361 return internalRoleNameVector->at(role); | 1363 return internalRoleNameVector->at(role); |
| 1362 } | 1364 } |
| 1363 | 1365 |
| 1366 DEFINE_TRACE(AXObject) |
| 1367 { |
| 1368 visitor->trace(m_children); |
| 1369 visitor->trace(m_parent); |
| 1370 visitor->trace(m_cachedLiveRegionRoot); |
| 1371 visitor->trace(m_axObjectCache); |
| 1372 } |
| 1373 |
| 1364 } // namespace blink | 1374 } // namespace blink |
| OLD | NEW |