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

Unified Diff: Source/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp

Issue 180143003: Have LiveNodeListBase::ownerNode() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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 | Source/core/dom/ChildNodeList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « no previous file | Source/core/dom/ChildNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698