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

Unified Diff: Source/core/dom/Element.h

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 side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index 221c8aeec54020548e849dbeca693885cb853535..eb19f0eb3c7aa737f126845688b28380d1bfe18c 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -39,6 +39,10 @@
#include "platform/heap/Handle.h"
#include "public/platform/WebFocusType.h"
+#if ENABLE(OILPAN)
+#include "core/dom/AXObjectCache.h"
+#endif
+
namespace blink {
class ElementAnimations;
@@ -801,6 +805,10 @@ inline void Node::removedFrom(ContainerNode* insertionPoint)
clearFlag(InDocumentFlag);
if (isInShadowTree() && !treeScope().rootNode().isShadowRoot())
clearFlag(IsInShadowTreeFlag);
+#if ENABLE(OILPAN)
+ if (AXObjectCache* cache = document().existingAXObjectCache())
+ cache->remove(this);
haraken 2015/06/23 06:33:29 Can we remove cache->remove() from TreeScopeAdopte
haraken 2015/06/23 06:47:22 Or, in oilpan, isn't the cache->remove() in TreeSc
keishi 2015/06/24 05:08:21 Removed excess remove() calls. Node::removeFrom an
+#endif
}
inline void Element::invalidateStyleAttribute()

Powered by Google App Engine
This is Rietveld 408576698