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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 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 19 matching lines...) Expand all
30 30
31 #ifndef CustomElementProcessingStack_h 31 #ifndef CustomElementProcessingStack_h
32 #define CustomElementProcessingStack_h 32 #define CustomElementProcessingStack_h
33 33
34 #include "core/CoreExport.h" 34 #include "core/CoreExport.h"
35 #include "core/dom/custom/CustomElementCallbackQueue.h" 35 #include "core/dom/custom/CustomElementCallbackQueue.h"
36 #include "wtf/Vector.h" 36 #include "wtf/Vector.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class CORE_EXPORT CustomElementProcessingStack : public NoBaseWillBeGarbageColle ctedFinalized<CustomElementProcessingStack> { 40 class CORE_EXPORT CustomElementProcessingStack : public GarbageCollectedFinalize d<CustomElementProcessingStack> {
41 USING_FAST_MALLOC_WILL_BE_REMOVED(CustomElementProcessingStack);
42 WTF_MAKE_NONCOPYABLE(CustomElementProcessingStack); 41 WTF_MAKE_NONCOPYABLE(CustomElementProcessingStack);
43 public: 42 public:
44 // This is stack allocated in many DOM callbacks. Make it cheap. 43 // This is stack allocated in many DOM callbacks. Make it cheap.
45 class CallbackDeliveryScope { 44 class CallbackDeliveryScope {
46 STACK_ALLOCATED(); 45 STACK_ALLOCATED();
47 public: 46 public:
48 CallbackDeliveryScope() 47 CallbackDeliveryScope()
49 : m_savedElementQueueStart(s_elementQueueStart) 48 : m_savedElementQueueStart(s_elementQueueStart)
50 { 49 {
51 s_elementQueueStart = s_elementQueueEnd; 50 s_elementQueueStart = s_elementQueueEnd;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 92
94 static CustomElementCallbackQueue::ElementQueueId currentElementQueue() { re turn CustomElementCallbackQueue::ElementQueueId(s_elementQueueStart); } 93 static CustomElementCallbackQueue::ElementQueueId currentElementQueue() { re turn CustomElementCallbackQueue::ElementQueueId(s_elementQueueStart); }
95 94
96 static void processElementQueueAndPop(); 95 static void processElementQueueAndPop();
97 void processElementQueueAndPop(size_t start, size_t end); 96 void processElementQueueAndPop(size_t start, size_t end);
98 97
99 // The processing stack, flattened. Element queues lower in the 98 // The processing stack, flattened. Element queues lower in the
100 // stack appear toward the head of the vector. The first element 99 // stack appear toward the head of the vector. The first element
101 // is a null sentinel value. 100 // is a null sentinel value.
102 static const size_t kNumSentinels = 1; 101 static const size_t kNumSentinels = 1;
103 WillBeHeapVector<RawPtrWillBeMember<CustomElementCallbackQueue>> m_flattened ProcessingStack; 102 HeapVector<Member<CustomElementCallbackQueue>> m_flattenedProcessingStack;
104 }; 103 };
105 104
106 } // namespace blink 105 } // namespace blink
107 106
108 #endif // CustomElementProcessingStack_h 107 #endif // CustomElementProcessingStack_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698