| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014, Google Inc. All rights reserved. | 2 * Copyright (C) 2014, 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 using namespace HTMLNames; | 86 using namespace HTMLNames; |
| 87 | 87 |
| 88 // static | 88 // static |
| 89 AXObjectCache* AXObjectCacheImpl::create(Document& document) { | 89 AXObjectCache* AXObjectCacheImpl::create(Document& document) { |
| 90 return new AXObjectCacheImpl(document); | 90 return new AXObjectCacheImpl(document); |
| 91 } | 91 } |
| 92 | 92 |
| 93 AXObjectCacheImpl::AXObjectCacheImpl(Document& document) | 93 AXObjectCacheImpl::AXObjectCacheImpl(Document& document) |
| 94 : m_document(document), | 94 : m_document(document), |
| 95 m_modificationCount(0) | 95 m_modificationCount(0), |
| 96 #if ENABLE(ASSERT) | 96 #if ENABLE(ASSERT) |
| 97 , | 97 m_hasBeenDisposed(false), |
| 98 m_hasBeenDisposed(false) | |
| 99 #endif | 98 #endif |
| 100 , | |
| 101 m_notificationPostTimer(this, | 99 m_notificationPostTimer(this, |
| 102 &AXObjectCacheImpl::notificationPostTimerFired) { | 100 &AXObjectCacheImpl::notificationPostTimerFired) { |
| 103 } | 101 } |
| 104 | 102 |
| 105 AXObjectCacheImpl::~AXObjectCacheImpl() { | 103 AXObjectCacheImpl::~AXObjectCacheImpl() { |
| 106 ASSERT(m_hasBeenDisposed); | 104 ASSERT(m_hasBeenDisposed); |
| 107 } | 105 } |
| 108 | 106 |
| 109 void AXObjectCacheImpl::dispose() { | 107 void AXObjectCacheImpl::dispose() { |
| 110 m_notificationPostTimer.stop(); | 108 m_notificationPostTimer.stop(); |
| (...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 visitor->trace(m_document); | 1253 visitor->trace(m_document); |
| 1256 visitor->trace(m_nodeObjectMapping); | 1254 visitor->trace(m_nodeObjectMapping); |
| 1257 | 1255 |
| 1258 visitor->trace(m_objects); | 1256 visitor->trace(m_objects); |
| 1259 visitor->trace(m_notificationsToPost); | 1257 visitor->trace(m_notificationsToPost); |
| 1260 | 1258 |
| 1261 AXObjectCache::trace(visitor); | 1259 AXObjectCache::trace(visitor); |
| 1262 } | 1260 } |
| 1263 | 1261 |
| 1264 } // namespace blink | 1262 } // namespace blink |
| OLD | NEW |