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

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

Issue 2336103003: Convert a few more CFI blacklist entries into DISABLE_CFI_PERF attributes. (Closed)
Patch Set: Created 4 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
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 } 150 }
151 151
152 const unsigned m_overridesItemAfter : 1; 152 const unsigned m_overridesItemAfter : 1;
153 const unsigned m_shouldOnlyIncludeDirectChildren : 1; 153 const unsigned m_shouldOnlyIncludeDirectChildren : 1;
154 mutable Member<NamedItemCache> m_namedItemCache; 154 mutable Member<NamedItemCache> m_namedItemCache;
155 mutable CollectionItemsCache<HTMLCollection, Element> m_collectionItemsCache ; 155 mutable CollectionItemsCache<HTMLCollection, Element> m_collectionItemsCache ;
156 }; 156 };
157 157
158 DEFINE_TYPE_CASTS(HTMLCollection, LiveNodeListBase, collection, isHTMLCollection Type(collection->type()), isHTMLCollectionType(collection.type())); 158 DEFINE_TYPE_CASTS(HTMLCollection, LiveNodeListBase, collection, isHTMLCollection Type(collection->type()), isHTMLCollectionType(collection.type()));
159 159
160 DISABLE_CFI_PERF
160 inline void HTMLCollection::invalidateCacheForAttribute(const QualifiedName* att rName) const 161 inline void HTMLCollection::invalidateCacheForAttribute(const QualifiedName* att rName) const
161 { 162 {
162 if (!attrName || shouldInvalidateTypeOnAttributeChange(invalidationType(), * attrName)) 163 if (!attrName || shouldInvalidateTypeOnAttributeChange(invalidationType(), * attrName))
163 invalidateCache(); 164 invalidateCache();
164 else if (*attrName == HTMLNames::idAttr || *attrName == HTMLNames::nameAttr) 165 else if (*attrName == HTMLNames::idAttr || *attrName == HTMLNames::nameAttr)
165 invalidateIdNameCacheMaps(); 166 invalidateIdNameCacheMaps();
166 } 167 }
167 168
168 } // namespace blink 169 } // namespace blink
169 170
170 #endif // HTMLCollection_h 171 #endif // HTMLCollection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/EventTarget.h ('k') | third_party/WebKit/Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698