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

Side by Side Diff: Source/core/html/HTMLCollection.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLCanvasElement.cpp ('k') | Source/core/html/HTMLContentElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003-2008, 2011, 2012, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2003-2008, 2011, 2012, 2014 Apple Inc. All rights reserved.
5 * Copyright (C) 2014 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2014 Samsung Electronics. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 161 }
162 ASSERT_NOT_REACHED(); 162 ASSERT_NOT_REACHED();
163 return DoNotInvalidateOnAttributeChanges; 163 return DoNotInvalidateOnAttributeChanges;
164 } 164 }
165 165
166 HTMLCollection::HTMLCollection(ContainerNode& ownerNode, CollectionType type, It emAfterOverrideType itemAfterOverrideType) 166 HTMLCollection::HTMLCollection(ContainerNode& ownerNode, CollectionType type, It emAfterOverrideType itemAfterOverrideType)
167 : LiveNodeListBase(ownerNode, rootTypeFromCollectionType(type), invalidation TypeExcludingIdAndNameAttributes(type), type) 167 : LiveNodeListBase(ownerNode, rootTypeFromCollectionType(type), invalidation TypeExcludingIdAndNameAttributes(type), type)
168 , m_overridesItemAfter(itemAfterOverrideType == OverridesItemAfter) 168 , m_overridesItemAfter(itemAfterOverrideType == OverridesItemAfter)
169 , m_shouldOnlyIncludeDirectChildren(shouldTypeOnlyIncludeDirectChildren(type )) 169 , m_shouldOnlyIncludeDirectChildren(shouldTypeOnlyIncludeDirectChildren(type ))
170 { 170 {
171 ScriptWrappable::init(this);
172 } 171 }
173 172
174 PassRefPtrWillBeRawPtr<HTMLCollection> HTMLCollection::create(ContainerNode& bas e, CollectionType type) 173 PassRefPtrWillBeRawPtr<HTMLCollection> HTMLCollection::create(ContainerNode& bas e, CollectionType type)
175 { 174 {
176 return adoptRefWillBeNoop(new HTMLCollection(base, type, DoesNotOverrideItem After)); 175 return adoptRefWillBeNoop(new HTMLCollection(base, type, DoesNotOverrideItem After));
177 } 176 }
178 177
179 HTMLCollection::~HTMLCollection() 178 HTMLCollection::~HTMLCollection()
180 { 179 {
181 #if !ENABLE(OILPAN) 180 #if !ENABLE(OILPAN)
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 } 498 }
500 499
501 void HTMLCollection::trace(Visitor* visitor) 500 void HTMLCollection::trace(Visitor* visitor)
502 { 501 {
503 visitor->trace(m_namedItemCache); 502 visitor->trace(m_namedItemCache);
504 visitor->trace(m_collectionItemsCache); 503 visitor->trace(m_collectionItemsCache);
505 LiveNodeListBase::trace(visitor); 504 LiveNodeListBase::trace(visitor);
506 } 505 }
507 506
508 } // namespace blink 507 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/HTMLCanvasElement.cpp ('k') | Source/core/html/HTMLContentElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698