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

Unified Diff: Source/core/dom/TreeScopeAdopter.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/layout/line/AbstractInlineTextBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/TreeScopeAdopter.cpp
diff --git a/Source/core/dom/TreeScopeAdopter.cpp b/Source/core/dom/TreeScopeAdopter.cpp
index b074b81fcef5e28854616ce4b3a482342518cda9..b48de5bdcf26e9631a6e12da1f42ad43fa90aee6 100644
--- a/Source/core/dom/TreeScopeAdopter.cpp
+++ b/Source/core/dom/TreeScopeAdopter.cpp
@@ -25,7 +25,6 @@
#include "config.h"
#include "core/dom/TreeScopeAdopter.h"
-#include "core/dom/AXObjectCache.h"
#include "core/dom/Attr.h"
#include "core/dom/NodeRareData.h"
#include "core/dom/NodeTraversal.h"
@@ -49,7 +48,6 @@ void TreeScopeAdopter::moveTreeToNewScope(Node& root) const
Document& oldDocument = oldScope().document();
Document& newDocument = newScope().document();
bool willMoveToNewDocument = oldDocument != newDocument;
- AXObjectCache* axObjectCache = oldDocument.existingAXObjectCache();
if (willMoveToNewDocument)
oldDocument.incDOMTreeVersion();
@@ -57,8 +55,6 @@ void TreeScopeAdopter::moveTreeToNewScope(Node& root) const
updateTreeScope(node);
if (willMoveToNewDocument) {
- if (axObjectCache)
- axObjectCache->remove(&node);
moveNodeToNewDocument(node, oldDocument, newDocument);
} else if (node.hasRareData()) {
NodeRareData* rareData = node.rareData();
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/layout/line/AbstractInlineTextBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698