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

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

Issue 1219013005: Fix virtual/override/final usage in Source/core/html/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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.h ('k') | Source/core/html/HTMLContentElement.h » ('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, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All r ights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All r ights 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 25 matching lines...) Expand all
36 DEFINE_WRAPPERTYPEINFO(); 36 DEFINE_WRAPPERTYPEINFO();
37 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLCollection); 37 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLCollection);
38 public: 38 public:
39 enum ItemAfterOverrideType { 39 enum ItemAfterOverrideType {
40 OverridesItemAfter, 40 OverridesItemAfter,
41 DoesNotOverrideItemAfter, 41 DoesNotOverrideItemAfter,
42 }; 42 };
43 43
44 static PassRefPtrWillBeRawPtr<HTMLCollection> create(ContainerNode& base, Co llectionType); 44 static PassRefPtrWillBeRawPtr<HTMLCollection> create(ContainerNode& base, Co llectionType);
45 virtual ~HTMLCollection(); 45 virtual ~HTMLCollection();
46 virtual void invalidateCache(Document* oldDocument = 0) const override; 46 void invalidateCache(Document* oldDocument = 0) const override;
47 void invalidateCacheForAttribute(const QualifiedName*) const; 47 void invalidateCacheForAttribute(const QualifiedName*) const;
48 48
49 // DOM API 49 // DOM API
50 unsigned length() const; 50 unsigned length() const;
51 Element* item(unsigned offset) const; 51 Element* item(unsigned offset) const;
52 virtual Element* namedItem(const AtomicString& name) const; 52 virtual Element* namedItem(const AtomicString& name) const;
53 bool namedPropertyQuery(const AtomicString&, ExceptionState&); 53 bool namedPropertyQuery(const AtomicString&, ExceptionState&);
54 void namedPropertyEnumerator(Vector<String>& names, ExceptionState&); 54 void namedPropertyEnumerator(Vector<String>& names, ExceptionState&);
55 55
56 // Non-DOM API 56 // Non-DOM API
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 { 159 {
160 if (!attrName || shouldInvalidateTypeOnAttributeChange(invalidationType(), * attrName)) 160 if (!attrName || shouldInvalidateTypeOnAttributeChange(invalidationType(), * attrName))
161 invalidateCache(); 161 invalidateCache();
162 else if (*attrName == HTMLNames::idAttr || *attrName == HTMLNames::nameAttr) 162 else if (*attrName == HTMLNames::idAttr || *attrName == HTMLNames::nameAttr)
163 invalidateIdNameCacheMaps(); 163 invalidateIdNameCacheMaps();
164 } 164 }
165 165
166 } // namespace blink 166 } // namespace blink
167 167
168 #endif // HTMLCollection_h 168 #endif // HTMLCollection_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLCanvasElement.h ('k') | Source/core/html/HTMLContentElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698