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

Unified Diff: sky/engine/bindings/core/v8/V8GCController.cpp

Issue 697773002: Remove Element#attributes. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix template binding. Created 6 years, 2 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 | « no previous file | sky/engine/bindings/core/v8/custom/V8NodeCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings/core/v8/V8GCController.cpp
diff --git a/sky/engine/bindings/core/v8/V8GCController.cpp b/sky/engine/bindings/core/v8/V8GCController.cpp
index bff292766581f2ba7bd3aea5048edbff356bd45e..cf60af398b195d8f557da0a2c76d00ccd075d6e7 100644
--- a/sky/engine/bindings/core/v8/V8GCController.cpp
+++ b/sky/engine/bindings/core/v8/V8GCController.cpp
@@ -84,13 +84,6 @@ Node* V8GCController::opaqueRootForGC(Node* node, v8::Isolate*)
return &document;
}
- if (node->isAttributeNode()) {
- Node* ownerElement = toAttr(node)->ownerElement();
- if (!ownerElement)
- return node;
- node = ownerElement;
- }
-
while (Node* parent = node->parentOrShadowHostOrTemplateHostNode())
node = parent;
« no previous file with comments | « no previous file | sky/engine/bindings/core/v8/custom/V8NodeCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698