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

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

Issue 2574773002: Migrate WTF::Vector::append() to ::push_back() [part 4 of N] (Closed)
Patch Set: rebase Created 4 years 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 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void setOwner(ElementQueueId newOwner) { 53 void setOwner(ElementQueueId newOwner) {
54 // ElementCallbackQueues only migrate towards the top of the 54 // ElementCallbackQueues only migrate towards the top of the
55 // processing stack. 55 // processing stack.
56 DCHECK_GE(newOwner, m_owner); 56 DCHECK_GE(newOwner, m_owner);
57 m_owner = newOwner; 57 m_owner = newOwner;
58 } 58 }
59 59
60 bool processInElementQueue(ElementQueueId); 60 bool processInElementQueue(ElementQueueId);
61 61
62 void append(V0CustomElementProcessingStep* invocation) { 62 void append(V0CustomElementProcessingStep* invocation) {
63 m_queue.append(invocation); 63 m_queue.push_back(invocation);
64 } 64 }
65 bool inCreatedCallback() const { return m_inCreatedCallback; } 65 bool inCreatedCallback() const { return m_inCreatedCallback; }
66 66
67 DECLARE_TRACE(); 67 DECLARE_TRACE();
68 68
69 private: 69 private:
70 explicit V0CustomElementCallbackQueue(Element*); 70 explicit V0CustomElementCallbackQueue(Element*);
71 71
72 Member<Element> m_element; 72 Member<Element> m_element;
73 HeapVector<Member<V0CustomElementProcessingStep>> m_queue; 73 HeapVector<Member<V0CustomElementProcessingStep>> m_queue;
74 ElementQueueId m_owner; 74 ElementQueueId m_owner;
75 size_t m_index; 75 size_t m_index;
76 bool m_inCreatedCallback; 76 bool m_inCreatedCallback;
77 }; 77 };
78 78
79 } // namespace blink 79 } // namespace blink
80 80
81 #endif // V0CustomElementCallbackQueue_h 81 #endif // V0CustomElementCallbackQueue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698