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

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/CustomElementSyncMicrotaskQueue.cpp

Issue 1914923002: Rename all existing custom element classes as V0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CustomElementV0 -> V0CustomElement 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "core/dom/custom/CustomElementSyncMicrotaskQueue.h"
6
7 namespace blink {
8
9 void CustomElementSyncMicrotaskQueue::enqueue(CustomElementMicrotaskStep* step)
10 {
11 m_queue.append(step);
12 }
13
14 void CustomElementSyncMicrotaskQueue::doDispatch()
15 {
16 unsigned i;
17
18 for (i = 0; i < m_queue.size(); ++i) {
19 if (CustomElementMicrotaskStep::Processing == m_queue[i]->process())
20 break;
21 }
22
23 m_queue.remove(0, i);
24 }
25
26 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698