Index: Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp b/Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp |
index 759ada1974e44e52a7f14b8e81272668c89f9b62..9d73a3f573b48f0a8a54c61b68bbb88c856e81fb 100644 |
--- a/Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp |
+++ b/Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp |
@@ -87,10 +87,9 @@ void V8HTMLAllCollection::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Va |
return; |
HTMLAllCollection* imp = V8HTMLAllCollection::toNative(info.Holder()); |
- Node* ownerNode = imp->ownerNode(); |
- ASSERT(ownerNode); |
+ Node& ownerNode = imp->ownerNode(); |
- UseCounter::count(ownerNode->document(), UseCounter::DocumentAllLegacyCall); |
+ UseCounter::count(ownerNode.document(), UseCounter::DocumentAllLegacyCall); |
if (info.Length() == 1) { |
v8SetReturnValue(info, getItem(imp, info[0], info)); |