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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLElementStack.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) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 26 matching lines...) Expand all
37 namespace blink { 37 namespace blink {
38 38
39 class ContainerNode; 39 class ContainerNode;
40 class Element; 40 class Element;
41 class QualifiedName; 41 class QualifiedName;
42 42
43 // NOTE: The HTML5 spec uses a backwards (grows downward) stack. We're using 43 // NOTE: The HTML5 spec uses a backwards (grows downward) stack. We're using
44 // more standard (grows upwards) stack terminology here. 44 // more standard (grows upwards) stack terminology here.
45 class HTMLElementStack { 45 class HTMLElementStack {
46 WTF_MAKE_NONCOPYABLE(HTMLElementStack); 46 WTF_MAKE_NONCOPYABLE(HTMLElementStack);
47 DISALLOW_ALLOCATION(); 47 DISALLOW_NEW();
48 public: 48 public:
49 HTMLElementStack(); 49 HTMLElementStack();
50 ~HTMLElementStack(); 50 ~HTMLElementStack();
51 51
52 class ElementRecord final : public NoBaseWillBeGarbageCollected<ElementRecor d> { 52 class ElementRecord final : public NoBaseWillBeGarbageCollected<ElementRecor d> {
53 WTF_MAKE_NONCOPYABLE(ElementRecord); USING_FAST_MALLOC_WILL_BE_REMOVED(E lementRecord); 53 WTF_MAKE_NONCOPYABLE(ElementRecord); USING_FAST_MALLOC_WILL_BE_REMOVED(E lementRecord);
54 public: 54 public:
55 #if !ENABLE(OILPAN) 55 #if !ENABLE(OILPAN)
56 ~ElementRecord(); // Public for ~PassOwnPtr() 56 ~ElementRecord(); // Public for ~PassOwnPtr()
57 #endif 57 #endif
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 RawPtrWillBeMember<Element> m_headElement; 186 RawPtrWillBeMember<Element> m_headElement;
187 RawPtrWillBeMember<Element> m_bodyElement; 187 RawPtrWillBeMember<Element> m_bodyElement;
188 unsigned m_stackDepth; 188 unsigned m_stackDepth;
189 }; 189 };
190 190
191 WILL_NOT_BE_EAGERLY_TRACED_CLASS(HTMLElementStack::ElementRecord); 191 WILL_NOT_BE_EAGERLY_TRACED_CLASS(HTMLElementStack::ElementRecord);
192 192
193 } // namespace blink 193 } // namespace blink
194 194
195 #endif // HTMLElementStack_h 195 #endif // HTMLElementStack_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698