Index: Source/bindings/v8/V8GCController.cpp |
diff --git a/Source/bindings/v8/V8GCController.cpp b/Source/bindings/v8/V8GCController.cpp |
index 483d6480c733435afe8ee098cce49b29528bc2b1..df5d5eb9c569f892968824b16b1396a1a179eac5 100644 |
--- a/Source/bindings/v8/V8GCController.cpp |
+++ b/Source/bindings/v8/V8GCController.cpp |
@@ -42,6 +42,7 @@ |
#include "bindings/v8/WrapperTypeInfo.h" |
#include "core/dom/Attr.h" |
#include "core/dom/NodeTraversal.h" |
+#include "core/dom/TemplateContentDocumentFragment.h" |
#include "core/dom/shadow/ElementShadow.h" |
#include "core/dom/shadow/ShadowRoot.h" |
#include "core/html/HTMLImageElement.h" |
@@ -84,7 +85,7 @@ Node* V8GCController::opaqueRootForGC(Node* node, v8::Isolate*) |
node = ownerElement; |
} |
- while (Node* parent = node->parentOrShadowHostNode()) |
+ while (Node* parent = node->parentOrShadowHostOrTemplateHostNode()) |
node = parent; |
return node; |