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

Side by Side Diff: Source/core/dom/AXObjectCache.cpp

Issue 1072273006: Oilpan: Prepare moving AXObject to heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 { 54 {
55 } 55 }
56 56
57 PassOwnPtrWillBeRawPtr<ScopedAXObjectCache> ScopedAXObjectCache::create(Document & document) 57 PassOwnPtrWillBeRawPtr<ScopedAXObjectCache> ScopedAXObjectCache::create(Document & document)
58 { 58 {
59 return adoptPtrWillBeNoop(new ScopedAXObjectCache(document)); 59 return adoptPtrWillBeNoop(new ScopedAXObjectCache(document));
60 } 60 }
61 61
62 ScopedAXObjectCache::ScopedAXObjectCache(Document& document) 62 ScopedAXObjectCache::ScopedAXObjectCache(Document& document)
63 : m_ownedCache(nullptr) 63 : m_ownedCache(nullptr)
64 , m_cache(nullptr)
65 #if ENABLE(ASSERT) 64 #if ENABLE(ASSERT)
66 , m_hasBeenDisposed(false) 65 , m_hasBeenDisposed(false)
67 #endif 66 #endif
68 { 67 {
69 if (AXObjectCache* existingCache = document.axObjectCache()) { 68 if (AXObjectCache* existingCache = document.axObjectCache()) {
70 m_cache = existingCache; 69 m_cache = existingCache;
71 } else { 70 } else {
72 m_ownedCache = AXObjectCache::create(document); 71 m_ownedCache = AXObjectCache::create(document);
73 m_cache = m_ownedCache.get(); 72 m_cache = m_ownedCache.get();
74 } 73 }
(...skipping 19 matching lines...) Expand all
94 return m_cache; 93 return m_cache;
95 } 94 }
96 95
97 DEFINE_TRACE(ScopedAXObjectCache) 96 DEFINE_TRACE(ScopedAXObjectCache)
98 { 97 {
99 visitor->trace(m_ownedCache); 98 visitor->trace(m_ownedCache);
100 visitor->trace(m_cache); 99 visitor->trace(m_cache);
101 } 100 }
102 101
103 } // namespace blink 102 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/modules/accessibility/AXARIAGrid.h » ('j') | Source/modules/accessibility/AXImageMapLink.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698