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

Side by Side Diff: third_party/WebKit/Source/core/dom/AttributeCollection.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Apple Inc. All rights reserved. 3 * Copyright (C) 2014 Apple Inc. All rights reserved.
4 * Copyright (C) 2014 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2014 Samsung Electronics. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are 7 * modification, are permitted provided that the following conditions are
8 * met: 8 * met:
9 * 9 *
10 * * Redistributions of source code must retain the above copyright 10 * * Redistributions of source code must retain the above copyright
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 size_t findIndex(const AtomicString& name, bool shouldIgnoreCase) const; 70 size_t findIndex(const AtomicString& name, bool shouldIgnoreCase) const;
71 size_t findIndex(Attr*) const; 71 size_t findIndex(Attr*) const;
72 72
73 protected: 73 protected:
74 size_t findSlowCase(const AtomicString& name, bool shouldIgnoreAttributeCase ) const; 74 size_t findSlowCase(const AtomicString& name, bool shouldIgnoreAttributeCase ) const;
75 75
76 ContainerMemberType m_attributes; 76 ContainerMemberType m_attributes;
77 }; 77 };
78 78
79 class AttributeArray { 79 class AttributeArray {
80 DISALLOW_ALLOCATION(); 80 DISALLOW_NEW();
81 public: 81 public:
82 using ValueType = const Attribute; 82 using ValueType = const Attribute;
83 83
84 AttributeArray(const Attribute* array, unsigned size) 84 AttributeArray(const Attribute* array, unsigned size)
85 : m_array(array) 85 : m_array(array)
86 , m_size(size) 86 , m_size(size)
87 { } 87 { }
88 88
89 const Attribute* data() const { return m_array; } 89 const Attribute* data() const { return m_array; }
90 unsigned size() const { return m_size; } 90 unsigned size() const { return m_size; }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 if (equalPossiblyIgnoringCase(name, it->name().toString(), shouldIgn oreAttributeCase)) 215 if (equalPossiblyIgnoringCase(name, it->name().toString(), shouldIgn oreAttributeCase))
216 return index; 216 return index;
217 } 217 }
218 } 218 }
219 return kNotFound; 219 return kNotFound;
220 } 220 }
221 221
222 } // namespace blink 222 } // namespace blink
223 223
224 #endif // AttributeCollection_h 224 #endif // AttributeCollection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Attribute.h ('k') | third_party/WebKit/Source/core/dom/DOMArrayPiece.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698