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

Side by Side Diff: Source/core/dom/TagCollection.h

Issue 1219063013: Fix virtual/override/final usage in Source/core/dom/. (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/dom/StyleEngine.h ('k') | Source/core/dom/TemplateContentDocumentFragment.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 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 26 matching lines...) Expand all
37 ASSERT(namespaceURI != starAtom); 37 ASSERT(namespaceURI != starAtom);
38 return adoptRefWillBeNoop(new TagCollection(rootNode, TagCollectionType, namespaceURI, localName)); 38 return adoptRefWillBeNoop(new TagCollection(rootNode, TagCollectionType, namespaceURI, localName));
39 } 39 }
40 40
41 static PassRefPtrWillBeRawPtr<TagCollection> create(ContainerNode& rootNode, CollectionType type, const AtomicString& localName) 41 static PassRefPtrWillBeRawPtr<TagCollection> create(ContainerNode& rootNode, CollectionType type, const AtomicString& localName)
42 { 42 {
43 ASSERT_UNUSED(type, type == TagCollectionType); 43 ASSERT_UNUSED(type, type == TagCollectionType);
44 return adoptRefWillBeNoop(new TagCollection(rootNode, TagCollectionType, starAtom, localName)); 44 return adoptRefWillBeNoop(new TagCollection(rootNode, TagCollectionType, starAtom, localName));
45 } 45 }
46 46
47 virtual ~TagCollection(); 47 ~TagCollection() override;
48 48
49 bool elementMatches(const Element&) const; 49 bool elementMatches(const Element&) const;
50 50
51 protected: 51 protected:
52 TagCollection(ContainerNode& rootNode, CollectionType, const AtomicString& n amespaceURI, const AtomicString& localName); 52 TagCollection(ContainerNode& rootNode, CollectionType, const AtomicString& n amespaceURI, const AtomicString& localName);
53 53
54 AtomicString m_namespaceURI; 54 AtomicString m_namespaceURI;
55 AtomicString m_localName; 55 AtomicString m_localName;
56 }; 56 };
57 57
58 DEFINE_TYPE_CASTS(TagCollection, LiveNodeListBase, collection, collection->type( ) == TagCollectionType, collection.type() == TagCollectionType); 58 DEFINE_TYPE_CASTS(TagCollection, LiveNodeListBase, collection, collection->type( ) == TagCollectionType, collection.type() == TagCollectionType);
59 59
60 } // namespace blink 60 } // namespace blink
61 61
62 #endif // TagCollection_h 62 #endif // TagCollection_h
OLDNEW
« no previous file with comments | « Source/core/dom/StyleEngine.h ('k') | Source/core/dom/TemplateContentDocumentFragment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698